예제 #1
0
        internal static GetContactRequest CreateGetContactEntity(string sessionKey, uint uin, string deviceID, string OSType, string peer)
        {
            BaseRequest @base = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType);

            GetContactRequest.Builder builder = new GetContactRequest.Builder();
            builder.SetBase(@base);
            builder.SetUserCount(1);
            SKBuiltinString_t.Builder builder2 = new SKBuiltinString_t.Builder();
            builder2.SetString(peer);
            builder.AddUserNameList(builder2);
            builder.SetFromChatRoomNumb(1u);
            builder.AddFromChatRoom(new SKBuiltinString_t.Builder());
            return(builder.Build());
        }
예제 #2
0
        internal static GetContactRequest CreateGetContactEntity(string sessionKey, uint uin, string deviceID, string OSType, string peer)
        {
            BaseRequest br = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType);

            GetContactRequest.Builder gb = new GetContactRequest.Builder();
            gb.SetBase(br);
            gb.SetUserCount(1);
            SKBuiltinString_t.Builder sb = new SKBuiltinString_t.Builder();
            sb.SetString(peer);
            gb.AddUserNameList(sb);
            gb.SetFromChatRoomNumb(1);
            gb.AddFromChatRoom(new SKBuiltinString_t.Builder());

            return(gb.Build());
        }