Exemple #1
0
        //public static MMSnsPostResponse CreateMMSnsPostResponse(string deviceID, string sessionKey, uint uin, string OSType, byte[] keyBuffer) {
        //    BaseRequest br = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType, 3);
        //    MMSnsPostRequest.Builder builder = new MMSnsPostRequest.Builder();


        //    mm.command.NewInitResponse niReceive = mm.command.NewInitResponse.ParseFrom("0A570A105D64797E40587E3653492B3770767C6D10E5DA8D81031A20353332363435314632303045304431333043453441453237323632423631363920A28498B0012A1369506164206950686F6E65204F53392E332E33300012810808FB0712FB073C54696D656C696E654F626A6563743E3C69643E31323534323132393139333538343234323934373C2F69643E3C757365726E616D653E777869645F6B727862626D68316A75646533313C2F757365726E616D653E3C63726561746554696D653E313439353133383331303C2F63726561746554696D653E3C636F6E74656E74446573633EE2809CE7BEA1E68595E982A3E4BA9BE4B880E6B2BEE79D80E69E95E5A4B4E5B0B1E883BDE5AE89E79DA1E79A84E4BABAE5928CE982A3E4BA9BE586B3E5BF83E694BEE6898BE4B98BE5908EE5B0B1E4B88DE5868DE59B9EE5A4B4E79A84E4BABAE2809D3C2F636F6E74656E74446573633E3C636F6E74656E744465736353686F77547970653E303C2F636F6E74656E744465736353686F77547970653E3C636F6E74656E74446573635363656E653E333C2F636F6E74656E74446573635363656E653E3C707269766174653E303C2F707269766174653E3C7369676874466F6C6465643E303C2F7369676874466F6C6465643E3C617070496E666F3E3C69643E3C2F69643E3C76657273696F6E3E3C2F76657273696F6E3E3C6170704E616D653E3C2F6170704E616D653E3C696E7374616C6C55726C3E3C2F696E7374616C6C55726C3E3C66726F6D55726C3E3C2F66726F6D55726C3E3C6973466F7263655570646174653E303C2F6973466F7263655570646174653E3C2F617070496E666F3E3C736F75726365557365724E616D653E3C2F736F75726365557365724E616D653E3C736F757263654E69636B4E616D653E3C2F736F757263654E69636B4E616D653E3C73746174697374696373446174613E3C2F73746174697374696373446174613E3C737461744578745374723E3C2F737461744578745374723E3C436F6E74656E744F626A6563743E3C636F6E74656E745374796C653E323C2F636F6E74656E745374796C653E3C7469746C653E3C2F7469746C653E3C6465736372697074696F6E3E3C2F6465736372697074696F6E3E3C6D656469614C6973743E3C2F6D656469614C6973743E3C636F6E74656E7455726C3E3C2F636F6E74656E7455726C3E3C2F436F6E74656E744F626A6563743E3C616374696F6E496E666F3E3C6170704D73673E3C6D657373616765416374696F6E3E3C2F6D657373616765416374696F6E3E3C2F6170704D73673E3C2F616374696F6E496E666F3E3C6C6F636174696F6E20636974793D5C225C2220706F69436C61737369667949643D5C225C2220706F694E616D653D5C225C2220706F69416464726573733D5C225C2220706F69436C617373696679547970653D5C22305C223E3C2F6C6F636174696F6E3E3C7075626C6963557365724E616D653E3C2F7075626C6963557365724E616D653E3C2F54696D656C696E654F626A6563743E0D0A1800280030003A13736E735F706F73745F313533343933333731384001580068008001009A010A0A0012001A0020002800AA010408001200C00100".ToByteArray(16,2));

        //    niReceive.
        //}

        public static ShakereportRequest shakereport(float Latitude, float Longitude, string deviceID, string sessionKey, uint uin, string OSType)
        {
            BaseRequest br = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType, 0);

            ShakereportRequest.Builder shakereport = new ShakereportRequest.Builder();
            shakereport.SetBase(br);
            shakereport.SetOpCode(0);
            shakereport.SetLongitude(Longitude);
            shakereport.SetLatitude(Latitude);
            shakereport.SetImgId(0);
            shakereport.SetTimes(1);
            shakereport.SetPrecision(0);
            ShakereportRequest request = shakereport.Build();

            return(request);
        }
Exemple #2
0
        public static ShakereportRequest CreateShakeReportRequestEntity(string sessionKey, uint uin, string deviceID, string OSType, float weidu, float jingdu)
        {
            BaseRequest @base = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType);

            ShakereportRequest.Builder builder = new ShakereportRequest.Builder();
            builder.SetBase(@base);
            builder.SetOpCode(0);
            builder.SetLatitude(weidu);
            builder.SetLongitude(jingdu);
            builder.SetPrecision(5);
            builder.SetCellId("");
            builder.SetMacAddr("");
            builder.SetImgId(0);
            builder.SetTimes(4);
            builder.SetGPSSource(1);
            return(builder.Build());
        }