示例#1
0
文件: KwsCoreOp.cs 项目: tmbx/kwm-ng
 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));
     }
 }
示例#2
0
文件: KwsCoreOp.cs 项目: tmbx/kwm-ng
 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);
     }
 }
示例#3
0
文件: KwsCoreOp.cs 项目: tmbx/kwm-ng
 protected override void PrepareCmd(AnpMsg cmd)
 {
     cmd.Type = (uint)KAnp.KANP_CMD_CHAT_MSG;
     cmd.AddUInt32(ChannelID);
     cmd.AddString(Msg);
 }
示例#4
0
文件: EAnp.cs 项目: tmbx/etkwm
 /// <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);
 }
示例#5
0
文件: WmCoreOp.cs 项目: tmbx/kwm-ng
 protected override void FormatSuccessReply(AnpMsg m)
 {
     m.Type = (uint)EAnpRes.RegisterKps;
     m.AddUInt32((uint)ResCode);
     m.AddString(ResMsg);
 }
示例#6
0
文件: WmCoreOp.cs 项目: tmbx/kwm-ng
 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);
     }
 }