Exemplo n.º 1
0
 private bool doSceneEx(SnsActionGroup content, string clientID)
 {
     base.beginBuilder();
     base.mBuilder.BaseRequest = NetSceneBase.makeBaseRequest(0);
     base.mBuilder.Action      = content;
     base.mBuilder.ClientId    = clientID;
     base.mSessionPack.mCmdID  = 100;
     base.endBuilder();
     return(true);
 }
Exemplo n.º 2
0
 public static SnsComment toComment(SnsActionGroup act)
 {
     if (act == null)
     {
         return(null);
     }
     return(new SnsComment {
         strUserName = act.CurrentAction.FromUsername, strNickName = act.CurrentAction.FromNickname, nType = act.CurrentAction.Type, nSource = act.CurrentAction.Source, nCreateTime = act.CurrentAction.CreateTime, strContent = act.CurrentAction.Content, nCommentId = act.CurrentAction.CommentId, nReplyCommentId = act.CurrentAction.ReplyCommentId
     });
 }
Exemplo n.º 3
0
 private static void processSnsActionGroup(SnsActionGroup cmdSnsActionGp)
 {
     if (cmdSnsActionGp == null)
     {
         Log.e("NetSceneSnsSync", "processSnsActionGroup,invalid object");
     }
     else if (!SnsAsyncMgr.isDeletedObjectID(cmdSnsActionGp.Id))
     {
         SnsMsg msg = new SnsMsg
         {
             strObjectID     = SnsInfo.toStrID(cmdSnsActionGp.Id),
             strParentID     = SnsInfo.toStrID(cmdSnsActionGp.ParentId),
             strFromUsername = cmdSnsActionGp.CurrentAction.FromUsername,
             strToUsername   = cmdSnsActionGp.CurrentAction.ToUsername,
             strFromNickname = cmdSnsActionGp.CurrentAction.FromNickname,
             strToNickname   = cmdSnsActionGp.CurrentAction.ToNickname,
             nType           = cmdSnsActionGp.CurrentAction.Type,
             nSource         = cmdSnsActionGp.CurrentAction.Source,
             nCreateTime     = cmdSnsActionGp.CurrentAction.CreateTime,
             strContent      = cmdSnsActionGp.CurrentAction.Content,
             nCommentId      = cmdSnsActionGp.CurrentAction.CommentId,
             nReplyCommentId = cmdSnsActionGp.CurrentAction.ReplyCommentId
         };
         if (cmdSnsActionGp.ReferAction.CreateTime != 0)
         {
             SnsMsgDetail detail = new SnsMsgDetail
             {
                 strFromUsername = cmdSnsActionGp.ReferAction.FromUsername,
                 strToUsername   = cmdSnsActionGp.ReferAction.ToUsername,
                 strFromNickname = cmdSnsActionGp.ReferAction.FromNickname,
                 strToNickname   = cmdSnsActionGp.ReferAction.ToNickname,
                 nType           = cmdSnsActionGp.ReferAction.Type,
                 nSource         = cmdSnsActionGp.ReferAction.Source,
                 nCreateTime     = cmdSnsActionGp.ReferAction.CreateTime,
                 strContent      = cmdSnsActionGp.ReferAction.Content,
                 nCommentId      = cmdSnsActionGp.ReferAction.CommentId,
                 nReplyCommentId = cmdSnsActionGp.ReferAction.ReplyCommentId
             };
             msg.refer = detail;
         }
         // StorageMgr.snsMsg.updateMsg(msg);
         // SnsInfoMgr.updateComment(cmdSnsActionGp);
     }
 }