Ejemplo n.º 1
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(SearchType);
            buffer.AddRange(KXTBitConvert.ToBytes(SearchString));

            return(buffer.ToArray());
        }
Ejemplo n.º 2
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(KXTBitConvert.ToBytes(Name));
            buffer.AddRange(KXTBitConvert.ToBytes(Path));

            return(buffer.ToArray());
        }
Ejemplo n.º 3
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(KXTBitConvert.ToBytes(UserID));
            buffer.AddRange(KXTBitConvert.ToBytes(UserEmail));

            return(buffer.ToArray());
        }
Ejemplo n.º 4
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(KXTBitConvert.ToBytes(GroupID));
            buffer.AddRange(KXTBitConvert.ToBytes(GroupDescribe));

            return(buffer.ToArray());
        }
Ejemplo n.º 5
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(ChatType);
            buffer.AddRange(KXTBitConvert.ToBytes(ID));

            return(buffer.ToArray());
        }
Ejemplo n.º 6
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(NextLabel.ToByteArray());
            buffer.AddRange(KXTBitConvert.ToBytes(Password));

            return(buffer.ToArray());
        }
Ejemplo n.º 7
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(KXTBitConvert.ToBytes(Sender));
            buffer.AddRange(KXTBitConvert.ToBytes(Friend));

            return(buffer.ToArray());
        }
Ejemplo n.º 8
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(ApplyResult);
            buffer.AddRange(KXTBitConvert.ToBytes(TargetID));
            buffer.AddRange(KXTBitConvert.ToBytes(ApplierID));

            return(buffer.ToArray());
        }
Ejemplo n.º 9
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(TargetType);
            buffer.AddRange(KXTBitConvert.ToBytes(TargetID));
            buffer.AddRange(KXTBitConvert.ToBytes(ApplyTime));
            buffer.AddRange(KXTBitConvert.ToBytes(Message));

            return(buffer.ToArray());
        }
Ejemplo n.º 10
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(KXTBitConvert.ToBytes(Time));
            buffer.AddRange(KXTBitConvert.ToBytes(Sender));
            buffer.AddRange(KXTBitConvert.ToBytes(Target));
            buffer.AddRange(KXTBitConvert.ToBytes(Message));

            return(buffer.ToArray());
        }
Ejemplo n.º 11
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(Folder);
            buffer.AddRange(BitConverter.GetBytes((int)Type));
            buffer.AddRange(BitConverter.GetBytes(Size));
            buffer.AddRange(KXTBitConvert.ToBytes(Time));
            buffer.AddRange(KXTBitConvert.ToBytes(Name));

            return(buffer.ToArray());
        }
Ejemplo n.º 12
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.AddRange(Sender.ToByteArray());
            buffer.AddRange(BitConverter.GetBytes(PreRecorder));
            buffer.AddRange(BitConverter.GetBytes(PreSize));
            buffer.AddRange(KXTBitConvert.ToBytes(Time));
            buffer.AddRange(KXTBitConvert.ToBytes(Message));

            return(buffer.ToArray());
        }
Ejemplo n.º 13
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(UserPicture);
            buffer.AddRange(KXTBitConvert.ToBytes(UserID));
            buffer.AddRange(KXTBitConvert.ToBytes(UserName));
            buffer.AddRange(KXTBitConvert.ToBytes(UserDescribe));
            buffer.AddRange(KXTBitConvert.ToBytes(UserPhone));
            buffer.AddRange(KXTBitConvert.ToBytes(UserEmail));

            return(buffer.ToArray());
        }
Ejemplo n.º 14
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            buffer.Add(UserPicture);
            buffer.AddRange(KXTBitConvert.ToBytes(GroupID));
            buffer.AddRange(KXTBitConvert.ToBytes(GroupName));
            buffer.AddRange(KXTBitConvert.ToBytes(GroupDescribe));
            buffer.AddRange(KXTBitConvert.ToBytes(CreatorID));
            buffer.AddRange(KXTBitConvert.ToBytes(CreatorName));
            buffer.AddRange(KXTBitConvert.ToBytes(CreateTime));

            return(buffer.ToArray());
        }
Ejemplo n.º 15
0
        public byte[] ToByteArray()
        {
            List <byte> buffer = new List <byte>();

            List <byte> temp = new List <byte>();

            {
                temp.AddRange(KXTBitConvert.ToBytes(Time));
                temp.AddRange(KXTBitConvert.ToBytes(Sender));
                temp.AddRange(KXTBitConvert.ToBytes(Message));
            }
            buffer.AddRange(BitConverter.GetBytes(temp.Count));
            buffer.AddRange(temp);

            return(buffer.ToArray());
        }
Ejemplo n.º 16
0
        public byte[] ToByteArray()
        {
            int count =
                null == FriendsID ?
                0 :
                FriendsID.Length > FriendsMaxCount ? FriendsMaxCount : FriendsID.Length;

            List <byte> buffer = new List <byte>();

            for (int i = 0; i < count; ++i)
            {
                buffer.AddRange(KXTBitConvert.ToBytes(FriendsID[i]));
            }

            return(buffer.ToArray());
        }
Ejemplo n.º 17
0
 public byte[] ToByteArray()
 {
     return(KXTBitConvert.ToBytes(UserID));
 }
Ejemplo n.º 18
0
 public byte[] ToByteArray()
 {
     return(KXTBitConvert.ToBytes(Path));
 }
Ejemplo n.º 19
0
 public byte[] ToByteArray()
 {
     return(KXTBitConvert.ToBytes(Email));
 }
Ejemplo n.º 20
0
 public byte[] ToByteArray()
 {
     return(KXTBitConvert.ToBytes(Group));
 }