protected override void PrepareCmd(AnpMsg cmd) { cmd.Type = (uint)KAnp.KANP_CMD_KWS_INVITE_KWS; cmd.AddString(InvitationMsg); cmd.AddUInt32((UInt32)UserList.Count); foreach (User u in UserList) { cmd.AddString(u.UserName); cmd.AddString(u.EmailAddress); cmd.AddUInt64(u.KeyID); cmd.AddString(u.OrgName); cmd.AddString(u.Pwd); cmd.AddUInt32(Convert.ToUInt32(KcdSendEmailFlag)); } }
protected override void FormatSuccessReply(AnpMsg m) { m.Type = (uint)EAnpRes.InviteKws; m.AddString(Wleu); m.AddUInt32((uint)UserList.Count); foreach (User u in UserList) { m.AddString(u.EmailAddress); m.AddString(u.Url); m.AddString(u.Error); } }
protected override void PrepareCmd(AnpMsg cmd) { cmd.Type = (uint)KAnp.KANP_CMD_CHAT_MSG; cmd.AddUInt32(ChannelID); cmd.AddString(Msg); }
/// <summary> /// Add the content of this exception to the ANP message specified. /// This is used to serialize an EAnp exception to an ANP message. /// </summary> public virtual void Serialize(AnpMsg m) { m.AddUInt32((UInt32)FailType); m.AddString(Message); }
protected override void FormatSuccessReply(AnpMsg m) { m.Type = (uint)EAnpRes.RegisterKps; m.AddUInt32((uint)ResCode); m.AddString(ResMsg); }
protected override void FormatSuccessReply(AnpMsg m) { m.Type = (uint)EAnpRes.LookupRecAddr; m.AddUInt32((uint)RecList.Count); foreach (Rec r in RecList) { m.AddString(r.Email); m.AddUInt64(r.KeyID); m.AddString(r.OrgName); } }