C# Class Aura.Msgr.Network.Send

显示文件 Open project: aura-project/aura

Public Methods

Method Description
ChangeOptionsR ( MsgrClient client, bool success ) : void

Updates options on the client on success.

ChatBeginR ( Aura.Msgr.Database.User user, long sessionId, int friendId ) : void

Notifies users about friend being offline.

ChatInviteR ( Aura.Msgr.Chat.ChatSession session, Aura.Msgr.Database.User user ) : void

Notifies users about someone joining the chat.

ChatJoin ( Aura.Msgr.Database.User user, Aura.Msgr.Chat.ChatSession session ) : void

Sends initial chat session information to user.

ChatLeave ( Aura.Msgr.Chat.ChatSession session, Aura.Msgr.Database.User user ) : void

Notifies session user about user closing chat window.

ChatR ( Aura.Msgr.Chat.ChatSession session, int contactId, string message ) : void

Broadcasts chat message in session.

FriendBlockR ( Aura.Msgr.Database.User user, bool success, int friendId ) : void

Response to FriendBlock request.

FriendConfirm ( Aura.Msgr.Database.User user, Aura.Msgr.Database.User friend ) : void

Sends live invitation from friend to user.

FriendInviteR ( MsgrClient client, FriendInviteResult result, Aura.Msgr.Database.Friend friend = null ) : void

Response to FriendInvite.

FriendListRequestR ( MsgrClient client, List friends ) : void

Sends friend list to client.

FriendOffline ( List users, Aura.Msgr.Database.User friend ) : void

Notifies users about friend being offline.

FriendOffline ( Aura.Msgr.Database.User user, Aura.Msgr.Database.User friend ) : void

Notifies user about friend being offline.

FriendOnline ( List users, Aura.Msgr.Database.User friend ) : void

Notifies users about friend being online.

FriendOnline ( Aura.Msgr.Database.User user, Aura.Msgr.Database.User friend ) : void

Notifies user about friend being online.

FriendOptionChanged ( List friends, Aura.Msgr.Database.User user ) : void

Updates user's status and nickname for all friends.

FriendUnblockR ( Aura.Msgr.Database.User user, bool success, int friendId ) : void

Response to FriendUnblock request.

GroupList ( MsgrClient client, ICollection groups ) : void

Sends group list to client.

GuildChatMsg ( Aura.Msgr.Database.User user, string sender, string msg ) : void

Sends GuildChatMsg from sender to user's client.

GuildMemberListR ( MsgrClient client, Guild guild ) : void

Sends GuildMemberListR to client.

GuildMemberRemove ( MsgrClient client, int contactId ) : void

Sends GuildMemberRemove to client.

GuildMemberState ( MsgrClient client, Guild guild, GuildMember member, Aura.Msgr.Database.User user, ContactStatus status ) : void

Sends GuildMemberState to client.

LoginR ( MsgrClient client, LoginResult result ) : void
NoteListRequestR ( MsgrClient client, List notes ) : void

Sends note list to client.

ReadNoteR ( MsgrClient client, Note note ) : void

Sends note to client.

SendNoteR ( MsgrClient client ) : void

Sends note to client.

YouGotNote ( MsgrClient client, Note note ) : void

Sends note to client.

Method Details

ChangeOptionsR() public static method

Updates options on the client on success.
public static ChangeOptionsR ( MsgrClient client, bool success ) : void
client MsgrClient
success bool
return void

ChatBeginR() public static method

Notifies users about friend being offline.
public static ChatBeginR ( Aura.Msgr.Database.User user, long sessionId, int friendId ) : void
user Aura.Msgr.Database.User
sessionId long
friendId int
return void

ChatInviteR() public static method

Notifies users about someone joining the chat.
public static ChatInviteR ( Aura.Msgr.Chat.ChatSession session, Aura.Msgr.Database.User user ) : void
session Aura.Msgr.Chat.ChatSession
user Aura.Msgr.Database.User
return void

ChatJoin() public static method

Sends initial chat session information to user.
public static ChatJoin ( Aura.Msgr.Database.User user, Aura.Msgr.Chat.ChatSession session ) : void
user Aura.Msgr.Database.User
session Aura.Msgr.Chat.ChatSession
return void

ChatLeave() public static method

Notifies session user about user closing chat window.
public static ChatLeave ( Aura.Msgr.Chat.ChatSession session, Aura.Msgr.Database.User user ) : void
session Aura.Msgr.Chat.ChatSession
user Aura.Msgr.Database.User
return void

ChatR() public static method

Broadcasts chat message in session.
public static ChatR ( Aura.Msgr.Chat.ChatSession session, int contactId, string message ) : void
session Aura.Msgr.Chat.ChatSession
contactId int
message string
return void

FriendBlockR() public static method

Response to FriendBlock request.
public static FriendBlockR ( Aura.Msgr.Database.User user, bool success, int friendId ) : void
user Aura.Msgr.Database.User
success bool
friendId int Only required on success.
return void

FriendConfirm() public static method

Sends live invitation from friend to user.
public static FriendConfirm ( Aura.Msgr.Database.User user, Aura.Msgr.Database.User friend ) : void
user Aura.Msgr.Database.User
friend Aura.Msgr.Database.User
return void

FriendInviteR() public static method

Response to FriendInvite.
public static FriendInviteR ( MsgrClient client, FriendInviteResult result, Aura.Msgr.Database.Friend friend = null ) : void
client MsgrClient
result FriendInviteResult
friend Aura.Msgr.Database.Friend Required for success, otherwise can be left null.
return void

FriendListRequestR() public static method

Sends friend list to client.
public static FriendListRequestR ( MsgrClient client, List friends ) : void
client MsgrClient
friends List
return void

FriendOffline() public static method

Notifies users about friend being offline.
public static FriendOffline ( List users, Aura.Msgr.Database.User friend ) : void
users List
friend Aura.Msgr.Database.User
return void

FriendOffline() public static method

Notifies user about friend being offline.
public static FriendOffline ( Aura.Msgr.Database.User user, Aura.Msgr.Database.User friend ) : void
user Aura.Msgr.Database.User
friend Aura.Msgr.Database.User
return void

FriendOnline() public static method

Notifies users about friend being online.
public static FriendOnline ( List users, Aura.Msgr.Database.User friend ) : void
users List
friend Aura.Msgr.Database.User
return void

FriendOnline() public static method

Notifies user about friend being online.
public static FriendOnline ( Aura.Msgr.Database.User user, Aura.Msgr.Database.User friend ) : void
user Aura.Msgr.Database.User
friend Aura.Msgr.Database.User
return void

FriendOptionChanged() public static method

Updates user's status and nickname for all friends.
public static FriendOptionChanged ( List friends, Aura.Msgr.Database.User user ) : void
friends List
user Aura.Msgr.Database.User
return void

FriendUnblockR() public static method

Response to FriendUnblock request.
public static FriendUnblockR ( Aura.Msgr.Database.User user, bool success, int friendId ) : void
user Aura.Msgr.Database.User
success bool
friendId int Only required on success.
return void

GroupList() public static method

Sends group list to client.
public static GroupList ( MsgrClient client, ICollection groups ) : void
client MsgrClient
groups ICollection
return void

GuildChatMsg() public static method

Sends GuildChatMsg from sender to user's client.
public static GuildChatMsg ( Aura.Msgr.Database.User user, string sender, string msg ) : void
user Aura.Msgr.Database.User
sender string
msg string
return void

GuildMemberListR() public static method

Sends GuildMemberListR to client.
public static GuildMemberListR ( MsgrClient client, Guild guild ) : void
client MsgrClient
guild Guild
return void

GuildMemberRemove() public static method

Sends GuildMemberRemove to client.
public static GuildMemberRemove ( MsgrClient client, int contactId ) : void
client MsgrClient
contactId int
return void

GuildMemberState() public static method

Sends GuildMemberState to client.
public static GuildMemberState ( MsgrClient client, Guild guild, GuildMember member, Aura.Msgr.Database.User user, ContactStatus status ) : void
client MsgrClient
guild Guild
member Aura.Shared.Database.GuildMember
user Aura.Msgr.Database.User
status ContactStatus
return void

LoginR() public static method

public static LoginR ( MsgrClient client, LoginResult result ) : void
client MsgrClient
result LoginResult
return void

NoteListRequestR() public static method

Sends note list to client.
public static NoteListRequestR ( MsgrClient client, List notes ) : void
client MsgrClient
notes List Set to null for negative response.
return void

ReadNoteR() public static method

Sends note to client.
public static ReadNoteR ( MsgrClient client, Note note ) : void
client MsgrClient
note Note Set to null for negative response.
return void

SendNoteR() public static method

Sends note to client.
public static SendNoteR ( MsgrClient client ) : void
client MsgrClient
return void

YouGotNote() public static method

Sends note to client.
public static YouGotNote ( MsgrClient client, Note note ) : void
client MsgrClient
note Note
return void