Skip to content

Commit

Permalink
desenhando estruturas de código que irei implementar
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioconselheiro committed Nov 12, 2023
1 parent 73265fb commit b32eac0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/app/shared/omegle/omegle.nostr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,35 @@ 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 ],
'#t': [ 'wannachat' ]
}
]);
}

updateUserStatus() {

}

listenDirectMessage() {

}

sendDirectMessage() {

}

deleteAccount() {

}
}
31 changes: 31 additions & 0 deletions src/app/shared/omegle/omegle.proxy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';

@Injectable()
export class OmegleProxyService {

searchStranger(): Observable<void> {

}

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 {

}
}

0 comments on commit b32eac0

Please sign in to comment.