-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cbf6b5
commit 4ea7515
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
samples/console.typescript/generated/TypedSignalR.Client/App.Interfaces.Chat.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} | ||
|
26 changes: 26 additions & 0 deletions
26
samples/console.typescript/generated/TypedSignalR.Client/App.Interfaces.WhiteBoard.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} | ||
|