diff --git a/src/app/shared/omegle/omegle.nostr.ts b/src/app/shared/omegle/omegle.nostr.ts index efa07a6..2c0b3fb 100644 --- a/src/app/shared/omegle/omegle.nostr.ts +++ b/src/app/shared/omegle/omegle.nostr.ts @@ -13,16 +13,14 @@ import { NostrEventKind } from '@domain/nostr-event-kind.enum'; * Cada nova conversa por ser um novo nsec */ -@Injectable({ - providedIn: 'root' -}) +@Injectable() export class OmegleNostr { constructor( private nostrService: NostrService ) { } - updateStatus() { + findByStatus() { this.nostrService.get([ { kinds: [ NostrEventKind.UserStatuses ], @@ -30,4 +28,20 @@ export class OmegleNostr { } ]); } + + updateUserStatus() { + + } + + listenDirectMessage() { + + } + + sendDirectMessage() { + + } + + deleteAccount() { + + } } diff --git a/src/app/shared/omegle/omegle.proxy.ts b/src/app/shared/omegle/omegle.proxy.ts new file mode 100644 index 0000000..185c508 --- /dev/null +++ b/src/app/shared/omegle/omegle.proxy.ts @@ -0,0 +1,31 @@ +import { Injectable } from '@angular/core'; +import { Observable } from 'rxjs'; + +@Injectable() +export class OmegleProxyService { + + searchStranger(): Observable { + + } + + sendMessage(): void { + + } + + // shows strange new messages and confirm your message was send + listenMessages(): Observable<[]> { + + } + + isTyping(): void { + // apply userstatuses, 'typing' + } + + stopTyping(): void { + // clean userstatuses + } + + disconnect(): void { + + } +}