Exemplo n.º 1
0
 public static bool OpQuitChatRoom(string chatRoomName)
 {
     QuitChatRoom.Builder builder = QuitChatRoom.CreateBuilder();
     builder.UserName     = Util.toSKString(AccountMgr.getCurAccount().strUsrName);
     builder.ChatRoomName = Util.toSKString(chatRoomName);
     return(add(new OpLog(0x10, builder.Build().ToByteArray())));
 }
Exemplo n.º 2
0
        //public static MsgUIStatus GetStatus(this ChatMsg msg)
        //{
        //    if (msg != null)
        //    {
        //        if (!msg.IsImage() && !msg.IsCustomSmiley())
        //        {
        //            return (MsgUIStatus) msg.nStatus;
        //        }
        //        if (msg.nIsSender == 1)
        //        {
        //            return (MsgUIStatus) msg.nStatus;
        //        }
        //    }
        //    return MsgUIStatus.Success;
        //}

        public static string getTalker(string toUserName, string fromUserName)
        {
            if (string.IsNullOrEmpty(toUserName) || string.IsNullOrEmpty(fromUserName))
            {
                //DebugEx.debugBreak();
                return("");
            }
            if (AccountMgr.getCurAccount().strUsrName.Equals(toUserName))
            {
                return(fromUserName);
            }
            return(toUserName);
        }