Skip to content

Commit

Permalink
update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
nenoNaninu committed May 30, 2022
1 parent 2cbf6b5 commit 4ea7515
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
import { Message } from '../App.Interfaces.Chat';

export type IChatHub = {
/**
* @param username Transpied from string
* @returns Transpied from System.Threading.Tasks.Task
*/
join(username: string): Promise<void>;
/**
* @returns Transpied from System.Threading.Tasks.Task
*/
leave(): Promise<void>;
/**
* @returns Transpied from System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<string>>
*/
getParticipants(): Promise<string[]>;
/**
* @param message Transpied from string
* @returns Transpied from System.Threading.Tasks.Task
*/
sendMessage(message: string): Promise<void>;
}

export type IChatReceiver = {
/**
* @param message Transpied from App.Interfaces.Chat.Message
* @returns Transpied from System.Threading.Tasks.Task
*/
onReceiveMessage(message: Message): Promise<void>;
/**
* @param username Transpied from string
* @param dateTime Transpied from System.DateTime
* @returns Transpied from System.Threading.Tasks.Task
*/
onLeave(username: string, dateTime: (Date | string)): Promise<void>;
/**
* @param username Transpied from string
* @param dateTime Transpied from System.DateTime
* @returns Transpied from System.Threading.Tasks.Task
*/
onJoin(username: string, dateTime: (Date | string)): Promise<void>;
}

Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
import { ShapeType } from '../App.Interfaces.WhiteBoard';

export type IWhiteboardHub = {
/**
* @param shapeType Transpied from App.Interfaces.WhiteBoard.ShapeType
* @param x Transpied from float
* @param y Transpied from float
* @returns Transpied from System.Threading.Tasks.Task<System.Guid>
*/
add(shapeType: ShapeType, x: number, y: number): Promise<string>;
/**
* @param shapeId Transpied from System.Guid
* @returns Transpied from System.Threading.Tasks.Task
*/
move(shapeId: string): Promise<void>;
/**
* @param x Transpied from float
* @param y Transpied from float
* @returns Transpied from System.Threading.Tasks.Task
*/
writeLine(x: number, y: number): Promise<void>;
}

export type IWhiteboardReceiver = {
/**
* @param shapeId Transpied from System.Guid
* @param x Transpied from float
* @param y Transpied from float
* @returns Transpied from System.Threading.Tasks.Task
*/
onMove(shapeId: string, x: number, y: number): Promise<void>;
/**
* @param x Transpied from float
* @param y Transpied from float
* @returns Transpied from System.Threading.Tasks.Task
*/
onWriteLine(x: number, y: number): Promise<void>;
}

0 comments on commit 4ea7515

Please sign in to comment.