├── tup-python
├── __init__.py
├── tars
│ ├── __init__.py
│ └── tars
│ │ ├── __init__.py
│ │ ├── QueryF.tars
│ │ └── EndpointF.tars
├── makefile
└── wmain.py
├── tup-c
├── Tars_c.h
├── tup_c.h
└── demo
│ ├── Test.tars
│ └── makefile
├── tup-php
├── tup.php
├── makefile
├── tars.php
├── demo
│ ├── demo.php
│ └── Hello.tars
└── tars_exception.php
├── tup-csharp
├── makefile
├── .vs
│ └── TestTupConsole
│ │ └── v14
│ │ └── .suo
├── TestTupConsole.sln
├── tars
│ ├── TarsEncodeException.cs
│ ├── TarsDecodeException.cs
│ └── TarsStruct.cs
├── util
│ └── ObjectCreateException.cs
├── Test
│ ├── Test.tars
│ └── Test_const.cs
├── Properties
│ └── AssemblyInfo.cs
└── tup
│ └── Const.cs
├── tup-windows-cpp
├── Tars.h
├── tup.h
└── TarsDisplayer.h
├── tup-oc
├── tup
│ ├── tupTests
│ │ ├── en.lproj
│ │ │ └── InfoPlist.strings
│ │ ├── WirelessUnifiedProtocolTests-Info.plist
│ │ ├── WirelessUnifiedProtocolTests.h
│ │ ├── Protocol
│ │ │ └── Mtt
│ │ │ │ ├── MttTipPushReq.h
│ │ │ │ ├── MttCityListReq.h
│ │ │ │ ├── MttPing.h
│ │ │ │ ├── MttDNSRsp.h
│ │ │ │ ├── MttImageRsp.h
│ │ │ │ ├── MttPushPortionFresh.h
│ │ │ │ ├── MttSTSingleMD5.h
│ │ │ │ ├── MttLPageReq.h
│ │ │ │ ├── MttSTImagePolicy.h
│ │ │ │ ├── MttVerifyReq.h
│ │ │ │ ├── MttDynamicRsp.h
│ │ │ │ ├── MttPluginBootResp.h
│ │ │ │ ├── MttPluginRspNew.h
│ │ │ │ ├── MttIcon.h
│ │ │ │ ├── MttConfInfo.h
│ │ │ │ ├── MttDNSReq.h
│ │ │ │ ├── MttBrokerJSPDInfo.h
│ │ │ │ ├── MttSTJSPDInfo.h
│ │ │ │ ├── MttCityListRsp.h
│ │ │ │ ├── MttPicInfo.h
│ │ │ │ ├── MttBrokerPicParam.h
│ │ │ │ ├── MttItemReq.h
│ │ │ │ ├── MttSearchReq.h
│ │ │ │ ├── MttETPV.h
│ │ │ │ ├── MttHotWordsReq.h
│ │ │ │ ├── MttHotWordsRsp.h
│ │ │ │ ├── MttIPListReq.h
│ │ │ │ ├── MttKeywordRsp.h
│ │ │ │ ├── MttSTTime.h
│ │ │ │ ├── MttSearchTypeReq.h
│ │ │ │ ├── MttExtDomain.h
│ │ │ │ ├── MttPicRsp.h
│ │ │ │ ├── MttConfRsp.h
│ │ │ │ ├── MttIconRsp.h
│ │ │ │ ├── MttDynamicReq.h
│ │ │ │ ├── MttSearchTypeInfo.h
│ │ │ │ ├── MttCheckPluginReq.h
│ │ │ │ ├── MttDirectPolicy.h
│ │ │ │ ├── MttHotListReq.h
│ │ │ │ ├── MttURLPV.h
│ │ │ │ ├── MttMethod.h
│ │ │ │ ├── MttAcceptEncoding.h
│ │ │ │ ├── MttIconInfo.h
│ │ │ │ ├── MttPushSysNotify.h
│ │ │ │ ├── MttContentEncoding.h
│ │ │ │ ├── MttERelayProtoVer.h
│ │ │ │ ├── MttItemRsp.h
│ │ │ │ ├── MttSecurityCheckType.h
│ │ │ │ ├── MttBrokerPushResponse.h
│ │ │ │ ├── MttErrorCode.h
│ │ │ │ ├── MttSpecialValue.h
│ │ │ │ ├── MttHotWordInfo.h
│ │ │ │ ├── MttPluginVersion.h
│ │ │ │ ├── MttBrokerReqType.h
│ │ │ │ ├── MttEWaitPushType.h
│ │ │ │ ├── MttNaviRsp.h
│ │ │ │ ├── MttPageReq.h
│ │ │ │ ├── MttSTJSInfo.h
│ │ │ │ ├── MttSTOperatorRsp.h
│ │ │ │ ├── MttEUSESTAT.h
│ │ │ │ ├── MttIPListRsp.h
│ │ │ │ ├── MttHotListRsp.h
│ │ │ │ ├── MttWeatherRsp.h
│ │ │ │ ├── MttFKINFO.h
│ │ │ │ ├── MttSTSpeedStatis.h
│ │ │ │ ├── MttBrowserVersion.h
│ │ │ │ ├── MttImageRsp.m
│ │ │ │ ├── MttImgRsp.h
│ │ │ │ ├── MttLPageReq.m
│ │ │ │ ├── MttBrokerSecurityResponse.h
│ │ │ │ ├── MttWeatherRsp4Mini.h
│ │ │ │ ├── MttAdsReq.h
│ │ │ │ ├── MttPing.m
│ │ │ │ ├── MttSTImagePolicy.m
│ │ │ │ ├── MttBrokerWups.h
│ │ │ │ ├── MttBrowserReq.h
│ │ │ │ ├── MttCityListReq.m
│ │ │ │ ├── MttItemReq.m
│ │ │ │ ├── MttRefuse.h
│ │ │ │ ├── MttSTTime.m
│ │ │ │ ├── MttVerifyRsp.h
│ │ │ │ ├── MttVerifyRspExt.h
│ │ │ │ └── MttWeatherReq.h
│ │ └── WirelessUnifiedProtocolTests.m
│ ├── tup
│ │ ├── WirelessUnifiedProtocol-Prefix.pch
│ │ ├── WirelessUnifiedProtocol.h
│ │ ├── RMIModel
│ │ │ ├── WupService.h
│ │ │ ├── WupHttpRequest.h
│ │ │ ├── WupAgentDelegate.h
│ │ │ └── WupService.m
│ │ └── Serializable
│ │ │ ├── JceEnumHelper.h
│ │ │ └── UniPacket.h
│ └── tup.xcodeproj
│ │ └── project.xcworkspace
│ │ └── contents.xcworkspacedata
└── Examples
│ ├── MttHDWupRMIServices.h
│ ├── MttHDWupAdapters.h
│ ├── Adapters
│ ├── MttUserBase+Adapter.h
│ ├── MttVerifyReq+Adapter.h
│ ├── MttHDVerifyRes.h
│ ├── MttSplashReq+Adapter.h
│ ├── MttPageConfigReq+Adapter.h
│ ├── MttReleaseInfo+Adapter.h
│ ├── MttLoginReq+Adapter.h
│ ├── MttSTStat+Adapter.h
│ ├── MttVerifyReq+Adapter.m
│ ├── MttSplashReq+Adapter.m
│ └── MttUserBase+Adapter.m
│ ├── MttHDWupBusinessData.h
│ ├── BusinessData
│ ├── MttHDPersistentObject.h
│ ├── MttHDVerifyInfo.h
│ ├── MttHDSplashInfo.h
│ ├── MttHDLoginInfo.h
│ └── MttHDVerifyInfo.m
│ ├── RMIServices
│ ├── MttStatService.h
│ ├── MttVerifyService.h
│ ├── MttCoolReadService.h
│ ├── MttConfigService.h
│ ├── MttSecurityService.h
│ └── MttLoginService.h
│ ├── RMIAgents
│ ├── MttStatAgent.h
│ ├── MttCoolReadAgent.h
│ ├── MttVerifyAgent.h
│ ├── MttSecurityAgent.h
│ ├── MttLoginAgent.h
│ └── MttConfigAgent.h
│ └── Protocol
│ ├── MttVideoReq.h
│ ├── MttBrokerSecurityResponse.h
│ └── MttBrokerSecurityResponse.m
├── docs
├── images
│ └── tars_tupclass.png
└── README.md
├── docs-en
└── README.md
├── .github
└── workflows
│ └── gitee-sync.yml
├── README.md
└── LICENSE
/tup-python/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tup-python/tars/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tup-python/tars/tars/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tup-c/Tars_c.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-c/Tars_c.h
--------------------------------------------------------------------------------
/tup-c/tup_c.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-c/tup_c.h
--------------------------------------------------------------------------------
/tup-php/tup.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-php/tup.php
--------------------------------------------------------------------------------
/tup-php/makefile:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-php/makefile
--------------------------------------------------------------------------------
/tup-php/tars.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-php/tars.php
--------------------------------------------------------------------------------
/tup-csharp/makefile:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-csharp/makefile
--------------------------------------------------------------------------------
/tup-php/demo/demo.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-php/demo/demo.php
--------------------------------------------------------------------------------
/tup-windows-cpp/Tars.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-windows-cpp/Tars.h
--------------------------------------------------------------------------------
/tup-windows-cpp/tup.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-windows-cpp/tup.h
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/docs/images/tars_tupclass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/docs/images/tars_tupclass.png
--------------------------------------------------------------------------------
/tup-python/tars/tars/QueryF.tars:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-python/tars/tars/QueryF.tars
--------------------------------------------------------------------------------
/tup-windows-cpp/TarsDisplayer.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-windows-cpp/TarsDisplayer.h
--------------------------------------------------------------------------------
/tup-python/tars/tars/EndpointF.tars:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-python/tars/tars/EndpointF.tars
--------------------------------------------------------------------------------
/tup-csharp/.vs/TestTupConsole/v14/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-csharp/.vs/TestTupConsole/v14/.suo
--------------------------------------------------------------------------------
/docs/README.md:
--------------------------------------------------------------------------------
1 | Tars Tup说明文档
2 |
3 | 名称 |功能
4 | ------------------|----------------
5 | tars_tup.md |Tars框架的统一通信协议说明文档
6 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/WirelessUnifiedProtocol-Prefix.pch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TarsCloud/TarsTup/HEAD/tup-oc/tup/tup/WirelessUnifiedProtocol-Prefix.pch
--------------------------------------------------------------------------------
/docs-en/README.md:
--------------------------------------------------------------------------------
1 | Tars Tup document
2 |
3 | name |function
4 | ------------------|----------------
5 | tars_tup.md |Tars unified communication protocol
6 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.github/workflows/gitee-sync.yml:
--------------------------------------------------------------------------------
1 | on:
2 | push:
3 | branches:
4 | - master
5 | tags:
6 | - "*"
7 |
8 | name: Sync to Gitee
9 | jobs:
10 | run:
11 | name: Run
12 | runs-on: ubuntu-latest
13 | steps:
14 | - name: Checkout source code
15 | uses: actions/checkout@v1
16 | - name: Mirror Github to Gitee
17 | uses: Yikun/hub-mirror-action@v1.2
18 | with:
19 | src: github/TarsCloud
20 | dst: gitee/TarsCloud
21 | dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
22 | dst_token: ${{ secrets.GITEE_TOKEN }}
23 | account_type: org
24 | timeout: 600
25 | debug: true
26 | force_update: true
27 | static_list: "TarsTup"
--------------------------------------------------------------------------------
/tup-python/makefile:
--------------------------------------------------------------------------------
1 | VERSION=0.0.2
2 |
3 | TARGET=tup-python-$(VERSION)
4 |
5 | FILES :=`ls -I "makefile" -I "$(TARGET)_tmp_dir"`
6 |
7 | tar: clean
8 | @if [ -d $(TARGET)_tmp_dir ]; then \
9 | echo "dir has exist:$(TARGET)_tmp_dir, abort."; \
10 | exit 1; \
11 | else \
12 | mkdir -p $(TARGET)_tmp_dir/$(TARGET);\
13 | echo $(FILES);\
14 | cp -rf $(FILES) $(TARGET)_tmp_dir/$(TARGET)/; \
15 | cd $(TARGET)_tmp_dir; tar --exclude=".svn" --exclude="_svn" -czvf $(TARGET).tgz $(TARGET)/; cd ..; \
16 | if [ -f "$(TARGET).tgz" ]; then \
17 | mv -vf $(TARGET).tgz $(TARGET).`date +%Y%m%d%H%M%S`.tgz; \
18 | fi; \
19 | mv $(TARGET)_tmp_dir/$(TARGET).tgz ./; \
20 | rm -rf $(TARGET)_tmp_dir; \
21 | echo "tar cvfz $(TARGET).tgz ..."; \
22 | fi
23 | clean:
24 | -@rm *.tgz
25 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/WirelessUnifiedProtocolTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.tencent.mtt.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [Read in English](README.en.md)
2 |
3 | ## 关于协议、Tars文件以及翻译工具的说明
4 |
5 | **`TARS编码协议`、`TUP组包协议`、`TARS组包协议`三者之间的关系:**
6 |
7 | - TARS编码协议是一种数据编解码规则,它将整形、枚举值、字符串、序列、字典、自定义结构体等数据类型按照一定的规则编码到二进制数据流中。对端接收到二进制数据流之后,按照相应的规则反序列化可得到原始数值。
8 |
9 | - TARS编码协议使用一种叫做TAG的整型值(unsigned char)来标识变量,比如某个变量A的TAG值为100(该值由开发者自定义),我们将变量值编码的同时,也将该TAG值编码进去。对端需要读取变量A的数值时,就到数据流中寻找TAG值为100的数据段,找到后按规则读出数据部分即是变量A的数值。
10 |
11 | - TARS编码协议的定位是一套编码规则。tars协议序列化之后的数据不仅可以进行网络传输,同时还可以存储到数据库中。
12 |
13 | - TUP组包协议是TARS编码协议的上层封装,定位为通信协议。它使用变量名作为变量的关键字,编码时,客户端将变量名打包到数据流中;解码时,对端根据变量名寻找对应的数据区,然后根据数据类型对该数据区进行反序列化得到原始数值。
14 |
15 | - TUP组包协议内置一个TARS编码协议的Map类型,该Map的关键字就是变量名,Map的值是将变量的数据值经过TARS编码序列化的二进制数据。
16 |
17 | - TUP组包协议封装的数据包可以直接发送给Tars服务端,而服务端可以直接反序列化得到原始值。
18 |
19 | - TARS组包协议是对RequestPacket(请求结构体)和ResponsePacket(结果结构体)使用TARS编码协议封装的通信协议。结构体包含比如请求序列号、协议类型、RPC参数序列化之后二进制数据等重要信息。
20 |
21 |
--------------------------------------------------------------------------------
/tup-csharp/TestTupConsole.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestTupConsole", "TestTupConsole.csproj", "{0EEBEABC-63C9-4FA7-8FEA-0FB1A3AFFCD4}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|x86 = Debug|x86
9 | Release|x86 = Release|x86
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {0EEBEABC-63C9-4FA7-8FEA-0FB1A3AFFCD4}.Debug|x86.ActiveCfg = Debug|x86
13 | {0EEBEABC-63C9-4FA7-8FEA-0FB1A3AFFCD4}.Debug|x86.Build.0 = Debug|x86
14 | {0EEBEABC-63C9-4FA7-8FEA-0FB1A3AFFCD4}.Release|x86.ActiveCfg = Release|x86
15 | {0EEBEABC-63C9-4FA7-8FEA-0FB1A3AFFCD4}.Release|x86.Build.0 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/tup-php/tars_exception.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tup-oc/Examples/MttHDWupRMIServices.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDTupRMIServices.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 |
26 |
--------------------------------------------------------------------------------
/tup-php/demo/Hello.tars:
--------------------------------------------------------------------------------
1 |
2 | module MTT
3 | {
4 | enum MYE1
5 | {
6 | EM_CAT,
7 | EM_DOG,
8 | EM_BIRD,
9 | EM_MAX_PET
10 | };
11 | struct A
12 | {
13 | 0 require int b;
14 | };
15 | struct HelloWorld
16 | {
17 | 0 require int nId;
18 | 1 require string sMsg;
19 | 2 require vector vNews;
20 | ///4 optional string sNew="client new";
21 | 5 require map mAddr;
22 | 6 require A a;
23 | };
24 |
25 | struct HelloPerson
26 | {
27 | 0 require int nId;
28 | 1 require string sName;
29 | 2 optional vector vFavor;
30 | 3 optional MYE1 ePet;
31 | ///4 optional byte aPetAge[5];
32 | 5 optional map mAddr;
33 | 6 optional string sPhone;
34 | 7 optional bool bMan;
35 | 9 optional HelloWorld shello;
36 | };
37 |
38 | interface Hello
39 | {
40 | int testHello(string s,vector vsh,out string r);
41 | int testPerson(HelloPerson stPersonIn,out HelloWorld stPersonOut);
42 | };
43 | };
44 |
--------------------------------------------------------------------------------
/tup-c/demo/Test.tars:
--------------------------------------------------------------------------------
1 | module Test
2 | {
3 | enum en
4 | {
5 | orange =1,
6 | apple = 2
7 | };
8 | struct B
9 | {
10 | 1 require int a;
11 | 2 require float f ;
12 | };
13 |
14 |
15 | struct A
16 | {
17 | 1 require int a;
18 | 2 require B b ;
19 | };
20 |
21 | struct TestInfo
22 | {
23 | 0 require int ibegin;
24 | 1 require bool b;
25 | 2 require short si;
26 | 3 require byte by;
27 | 4 require int ii;
28 | 5 require long li;
29 | 6 require float f;
30 | 7 require double d;
31 | 8 require string s;
32 | 9 require vector vi;
33 | 10 require map mi;
34 | 11 require A aa;
35 | 12 require int iend;
36 | 13 require vector vb;
37 | 14 require byte vbc[12];
38 |
39 | 15 require vector vi2;
40 | 16 require map mi2;
41 | };
42 |
43 | };
44 |
--------------------------------------------------------------------------------
/tup-csharp/tars/TarsEncodeException.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | using System;
18 |
19 | namespace Tup.Tars
20 | {
21 |
22 | public class TarsEncodeException: Exception
23 | {
24 |
25 | public TarsEncodeException(string str):base(str)
26 | {
27 | }
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/tup-csharp/tars/TarsDecodeException.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 |
18 | using System;
19 |
20 | namespace Tup.Tars
21 | {
22 | public class TarsDecodeException : Exception
23 | {
24 | public TarsDecodeException(string str)
25 | : base(str)
26 | {
27 | }
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/tup-csharp/util/ObjectCreateException.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 |
18 | using System;
19 |
20 | namespace Tup
21 | {
22 | internal class ObjectCreateException : Exception
23 | {
24 | public ObjectCreateException(Exception ex)
25 | : base("ObjectCreateException", ex)
26 | {
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/WirelessUnifiedProtocolTests.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // tupTests.h
19 | // tupTests
20 | //
21 | // Created by 壬俊 易 on 12-3-29.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface tupTests : SenTestCase
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/Examples/MttHDWupAdapters.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDTupAdapters.h
19 | // MttHD
20 | //
21 |
22 | #import "MttUserBase+Adapter.h"
23 | #import "MttVerifyReq+Adapter.h"
24 | #import "MttLoginReq+Adapter.h"
25 | #import "MttPageConfigReq+Adapter.h"
26 | #import "MttSplashReq+Adapter.h"
27 | #import "MttSTStat+Adapter.h"
28 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/WirelessUnifiedProtocol.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // tup.h
19 | // tup
20 | //
21 |
22 | #import "TarsObject.h"
23 | #import "TarsObjectV2.h"
24 | #import "TarsInputStream.h"
25 | #import "TarsOutputStream.h"
26 | #import "UniPacket.h"
27 | #import "TupAgent.h"
28 | #import "TupService.h"
29 | #import "UniAttribute.h"
30 |
--------------------------------------------------------------------------------
/tup-csharp/Test/Test.tars:
--------------------------------------------------------------------------------
1 | module Test
2 | {
3 | enum en
4 | {
5 | orange =1,
6 | apple = 2
7 | };
8 | struct B
9 | {
10 | 1 require int a;
11 | 2 require float f ;
12 | };
13 |
14 |
15 | struct A
16 | {
17 | 1 require int a;
18 | 2 require B b ;
19 | };
20 |
21 | struct TestInfo
22 | {
23 | 0 require int ibegin;
24 | 1 require bool b;
25 | 2 require short si;
26 | 3 require byte by;
27 | 4 require int ii;
28 | 5 require long li;
29 | 6 require float f;
30 | 7 require double d;
31 | 8 require string s;
32 | 9 require vector vi;
33 | 10 require map mi;
34 | 11 require A aa;
35 | 12 require int iend;
36 | 13 require vector vb;
37 | //14 require byte vbc[12];
38 |
39 | 15 require vector vi2;
40 | 16 require map mi2;
41 | 17 require unsigned int uii;
42 | 18 require map > msv;
43 | 19 optional vector vf;
44 | };
45 |
46 | };
47 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttUserBase+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttUserBase+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttUserBase (adapter)
28 |
29 | + (id)mtthdInstance;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttVerifyReq+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttVerifyReq+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttVerifyReq (adapter)
28 |
29 | + (id)mtthdInstance;
30 |
31 | @end
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttHDVerifyRes.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDVerifyRes.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-3.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttHDVerifyRes : NSObject
28 |
29 | + (NSData *)verifyResWithName:(NSString *)name;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttSplashReq+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttSplashReq+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-4.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttSplashReq (Adapter)
28 |
29 | + (id)mtthdInstance;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/MttHDWupBusinessData.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDTupBusinessData.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttHDVerifyInfo.h"
26 | #import "MttHDLoginInfo.h"
27 | #import "MttHDPageConfigInfo.h"
28 | #import "MttHDStatInfo.h"
29 | #import "MttHDStatInfo.h"
30 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttPageConfigReq+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttPageConfigReq+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-3.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttPageConfigReq (adapter)
28 |
29 | + (id)mtthdInstance;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/BusinessData/MttHDPersistentObject.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDPersistentObject.h
19 | // MttHD
20 | //
21 | // Created by renjunyi on 12-4-14.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "SQLitePersistentObject.h"
26 |
27 | @interface MttHDPersistentObject : SQLitePersistentObject
28 |
29 | + (id)theSpecial;
30 | + (NSString *)tupDataDirectory;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttReleaseInfo+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttReleaseInfo+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-21.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttReleaseInfo : NSObject
28 |
29 | + (NSString *)qua;
30 | + (NSString *)lc;
31 | + (NSString *)lcId;
32 | + (NSString *)channel;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttLoginReq+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttLoginReq+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 |
28 | @interface MttLoginReq (adapter)
29 |
30 | + (id)mtthdInstance;
31 | + (NSData *)key;
32 | + (NSData *)signature;
33 |
34 | @end
--------------------------------------------------------------------------------
/tup-csharp/Test/Test_const.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.1 by WSRD Tencent.
20 | // Generated from `Test.tars'
21 | // **********************************************************************
22 |
23 | using System;
24 | namespace Test
25 | {
26 | public enum en
27 | {
28 | orange = 1,
29 | apple = 2,
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/BusinessData/MttHDVerifyInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDVerifyInfo.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttHDPersistentObject.h"
26 |
27 | @interface MttHDVerifyInfo : MttHDPersistentObject
28 |
29 | @property (assign) NSInteger verifyId;
30 | @property (retain) NSString *parameter;
31 |
32 | + (MttHDVerifyInfo *)theSpecial;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttSTStat+Adapter.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttSTStat+Adapter.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-10.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttSTTime (Adapter)
28 |
29 | + (id)mtthdInstance;
30 |
31 | @end
32 |
33 | @interface MttSTStat (Adapter)
34 |
35 | + (id)mtthdInstance;
36 | + (void)mtthdInstanceReset;
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIServices/MttStatService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttStatService.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 |
28 | @interface MttStatService : TupService
29 |
30 | - (id)statWithCompleteBlock:(TupServiceBasicBlock)completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/RMIModel/WupService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // TupService.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | @class TupAgent;
26 |
27 | typedef void (^TupServiceBasicBlock)(void);
28 |
29 | @interface TupService : NSObject
30 |
31 | @property (readonly) TupAgent *agent;
32 |
33 | + (id)service;
34 | + (void)cancel:(id)stub;
35 | - (id)initWithAgent:(TupAgent *)agent;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIServices/MttVerifyService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttVerifyService.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 |
28 | @interface MttVerifyService : TupService
29 |
30 | - (id)verifyWithCompleteBlock:(TupServiceBasicBlock)completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIAgents/MttStatAgent.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttStatAgent.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-21.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 |
28 | @interface MttStatAgent : TupAgent
29 |
30 | - (bool)stat:(MttSTStat *)request;
31 | - (id)stat:(MttSTStat *)request withCompleteHandle:(void (^)(bool))handle;
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/tup-c/demo/makefile:
--------------------------------------------------------------------------------
1 | CC=gcc
2 | TARGET = demo
3 | CFLAGS+= -g -Wall $(JMP)
4 | TARS2C =../../../cpp/build/tools/tars2c/tars2c
5 | INCLUDE=-I../
6 |
7 | TARS_SRC := $(wildcard *.tars)
8 | TARS_H := $(patsubst %.tars,%.h, $(TARS_SRC))
9 | TARS_C := $(patsubst %.tars,%.c, $(TARS_SRC))
10 | LOCAL_SRC += $(sort $(wildcard *.cpp *.c) $(TARS_C))
11 | LOCAL_SRC += $(sort $(wildcard ../*.cpp ../*.c))
12 | LOCAL_OBJ += $(patsubst %.cpp,%.o, $(patsubst %.c,%.o, $(LOCAL_SRC)))
13 |
14 | $(TARGET): $(TARS_H) $(TARS_C) $(LOCAL_OBJ)
15 | $(CC) -o $@ $(LOCAL_OBJ)
16 |
17 | ifneq ($(TARS_SRC),)
18 | $(TARS_H) $(TARS_C) : $(TARS_SRC)
19 | rm -vf $(TARS_H) $(TARS_C) $(LOCAL_OBJ)
20 | $(TARS2C) ${TARSFLAGS} $(TARS_SRC)
21 | endif
22 |
23 | .%.d: %.cpp
24 | @echo "update $@ ..."; \
25 | echo -n $< | sed s/\.cpp/\.o:/ > $@; \
26 | $(CC) $(INCLUDE) -MM $< | sed '1s/.*.://' >> $@;
27 |
28 | %.o: %.cpp
29 | $(CXX) -m$(MFLAGS) $(CFLAGS) $(INCLUDE) -o $@ -c $<
30 |
31 | .%.d: %.c
32 | @echo "update $@ ..."; \
33 | echo -n $< | sed s/\.c/\.o:/ > $@; \
34 | $(CC) $(INCLUDE) -MM $< | sed '1s/.*.://' >> $@;
35 |
36 | %.o: %.c
37 | $(CC) $(CFLAGS) $(INCLUDE) -o $@ -c $<
38 |
39 | clean:
40 | @echo "cleanall"; \
41 | rm -vf $(TARGET) *.o .*.d.tmp .*.d gmon.out core.* *.log $(TARS_H) $(TARS_C) $(LOCAL_OBJ)
42 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttVerifyReq+Adapter.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttVerifyReq+Adapter.m
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttVerifyReq+adapter.h"
26 | #import "MttUserBase+adapter.h"
27 |
28 | @implementation MttVerifyReq (adapter)
29 |
30 | + (id)mtthdInstance
31 | {
32 | MttVerifyReq *instance = [MttVerifyReq object];
33 | instance.stUB = [MttUserBase mtthdInstance];
34 | return instance;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIServices/MttCoolReadService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttCoolReadService.h
19 | // MttHD
20 | //
21 | // Created by bilsonzhou on 12-4-20.
22 | // Copyright (c) 2012年 tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 | #import "MttVideoReq.h"
28 | #import "MttVideoApp.h"
29 |
30 | @interface MttVideoService : TupService
31 |
32 | - (id)getVideoWithCompleteBlock:(TupServiceBasicBlock)completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIAgents/MttCoolReadAgent.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttCoolReadAgent.h
19 | // MttHD
20 | //
21 | // Created by bilsonzhou on 12-4-20.
22 | // Copyright (c) 2012年 tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import "MttVideoReq.h"
27 | #import "MttVideoApp.h"
28 |
29 | @interface MttVideoAgent : TupAgent
30 |
31 | - (MttVideoResponse *)getVideo:(MttVideoRequest *)request;
32 | - (id)getVideo:(MttVideoRequest *)request withCompleteHandle:(void (^)(MttVideoResponse *))handle;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/RMIModel/WupHttpRequest.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // TupHttpRequest.h
19 | // tup
20 | //
21 | // Created by 壬俊 易 on 12-4-11.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import "ASIHTTPRequest.h"
27 | #import "TupAgentDelegate.h"
28 |
29 | @interface TupHttpRequest : ASIHTTPRequest
30 |
31 | // 当TUP请求失败时,是否更换其它TUP服务器进行重试,默认为NO
32 | @property (assign) BOOL retryUsingOtherServers;
33 |
34 | // 当retryUsingOtherServers为YES时,必须指定agentDelegate
35 | @property (retain) NSObject *agentDelegate;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIAgents/MttVerifyAgent.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttVerifyAgent.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 | #import
28 |
29 | @interface MttVerifyAgent : TupAgent
30 |
31 | - (MttVerifyRsp *)verify:(MttVerifyReq *)request;
32 | - (id)verify:(MttVerifyReq *)request withCompleteHandle:(void (^)(MttVerifyRsp *))handle;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttTipPushReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttTipPushReq : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sUrl,setSUrl:)) NSString* JV2_PROP_NM(o,0,sUrl);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/WirelessUnifiedProtocolTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // tupTests.m
19 | // tupTests
20 | //
21 | // Created by 壬俊 易 on 12-3-29.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "tupTests.h"
26 |
27 | @implementation tupTests
28 |
29 | - (void)setUp
30 | {
31 | [super setUp];
32 |
33 | // Set-up code here.
34 | }
35 |
36 | - (void)tearDown
37 | {
38 | // Tear-down code here.
39 |
40 | [super tearDown];
41 | }
42 |
43 | - (void)testExample
44 | {
45 | STFail(@"Unit tests are not implemented yet in tupTests");
46 | }
47 |
48 | @end
49 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/RMIModel/WupAgentDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // TupAgentDelegate.h
19 | // tup
20 | //
21 | // Created by 壬俊 易 on 12-4-11.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @protocol TupAgentDelegate
28 |
29 | // 获取服务器URL
30 | - (NSURL*)serverUrl;
31 |
32 | // 当使用指定的URL进行的TUP请求失败时,可以通过此接口废弃该URL,下次使用serverUrl接口将获得一
33 | // 个服务器url列表中的新url,当没有新的url时,返回nil
34 | - (void)invalidateServerUrl:(NSURL*)url;
35 |
36 | - (NSString*)userAgent;
37 | - (NSString*)qAuth;
38 | - (NSString*)qGuid;
39 | - (NSString*)qUA;
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttCityListReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttCityListReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iTime,setITime:)) TarsInt32 JV2_PROP_NM(o,0,iTime);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPing.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttPing : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(cReserved,setCReserved:)) TarsInt8 JV2_PROP_NM(r,0,cReserved);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIServices/MttConfigService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttConfigService.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 |
28 | @interface MttConfigService : TupService
29 |
30 | - (id)getPageConfigWithCompleteBlock:(TupServiceBasicBlock)completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
31 | - (id)getSplashWithCompleteBlock:(TupServiceBasicBlock)completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttDNSRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttDNSRsp : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(vIPList,setVIPList:)) NSArray* JV2_PROP_EX(r,0,vIPList,VONSString);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIAgents/MttSecurityAgent.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttSecurityAgent.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import "MttBrokerSecurityRequest.h"
27 | #import "MttBrokerSecurityResponse.h"
28 |
29 | @interface MttSecurityAgent : TupAgent
30 |
31 | - (MttBrokerSecurityResponse *)security:(MttBrokerSecurityRequest *)request;
32 | - (id)security:(MttBrokerSecurityRequest *)request withCompleteHandle:(void (^)(MttBrokerSecurityResponse *))handle;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttImageRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttImageRsp : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iRspPicSize,setIRspPicSize:)) TarsInt32 JV2_PROP_NM(r,0,iRspPicSize);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPushPortionFresh.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttPushPortionFresh : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(strText,setStrText:)) NSString* JV2_PROP_NM(r,0,strText);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTSingleMD5.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSTSingleMD5 : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(vSingleMD5,setVSingleMD5:)) NSData* JV2_PROP_NM(o,0,vSingleMD5);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIServices/MttSecurityService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttSecurityService.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 | #import "MttBrokerSecurityRequest.h"
28 | #import "MttBrokerSecurityResponse.h"
29 |
30 | @interface MttSecurityService : TupService
31 |
32 | - (id)security:(NSString *)url checkType:(int)type WithCompleteBlock:(void (^)(MttBrokerSecurityResponse *))completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttLPageReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttLPageReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iLoginPageTime,setILoginPageTime:)) TarsInt32 JV2_PROP_NM(o,0,iLoginPageTime);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTImagePolicy.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSTImagePolicy : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iMaxRetNum,setIMaxRetNum:)) TarsInt32 JV2_PROP_NM(r,0,iMaxRetNum);
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttVerifyReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttUserBase.h"
25 |
26 | @interface MttVerifyReq : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(stUB,setStUB:)) MttUserBase* JV2_PROP_NM(r,0,stUB);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIServices/MttLoginService.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttLoginService.h
19 | //
20 | // Created by 壬俊 易 on 12-3-15.
21 | // Copyright (c) 2012年 Tencent. All rights reserved.
22 | //
23 |
24 | #import
25 | #import
26 | #import
27 |
28 | @interface MttLoginService : TupService
29 |
30 | - (id)loginWithCompleteBlock:(TupServiceBasicBlock)completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
31 | - (id)updateWithCompleteBlock:(void (^)(MttUpdateRsp *))completeBlock failedBlock:(TupServiceBasicBlock)failedBlock;
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttDynamicRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttHotWordsRsp.h"
25 |
26 | @interface MttDynamicRsp : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(stHotRsp,setStHotRsp:)) MttHotWordsRsp* JV2_PROP_NM(r,0,stHotRsp);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Protocol/MttVideoReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttVideoReq.h
19 | // MttHD
20 | //
21 | // Created by bilsonzhou on 12-4-20.
22 | // Copyright (c) 2012年 tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 |
28 | @interface MttVideoRequest : TarsObjectV2
29 |
30 | @property (nonatomic, retain, JV2_PROP_GS(stUB)) MttUserBase * JV2_PROP_NM(o, 0, stUB);
31 | @property (nonatomic, retain, JV2_PROP_GS(sMd5)) NSString* JV2_PROP_NM(o, 1, sMd5);
32 |
33 | @end
34 |
35 | @interface MttVideoRequest (adapter)
36 |
37 | + (id)mtthdInstance;
38 |
39 | @end
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPluginBootResp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttPluginRspNew.h"
25 |
26 | @interface MttPluginBootResp : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(pluginRsp,setPluginRsp:)) MttPluginRspNew* JV2_PROP_NM(o,0,pluginRsp);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPluginRspNew.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttPluginInfoNew.h"
25 |
26 | @interface MttPluginRspNew : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vPlugins,setVPlugins:)) NSArray* JV2_PROP_EX(r,0,vPlugins,VOMTTPluginInfoNew);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/Examples/BusinessData/MttHDSplashInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDSplashInfo.h
19 | // MttHD
20 | //
21 | // Created by renjunyi on 12-4-14.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttHDPersistentObject.h"
26 |
27 | @interface MttHDSplashInfo : MttHDPersistentObject
28 |
29 | @property (retain) UIImage *splashImage;
30 | @property (retain) NSString *md5StringOfSplashImage;
31 | @property (retain) NSString *md5StringOfSplashConfig;
32 | @property (retain) NSDate *startTime;
33 | @property (retain) NSDate *expirationTime;
34 | @property (assign) NSInteger duration;
35 |
36 | - (UIImage *)defaultSplashImage;
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttIcon.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttIcon : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sName,setSName:)) NSString* JV2_PROP_NM(r,0,sName);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sData,setSData:)) NSData* JV2_PROP_NM(r,1,sData);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttConfInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttConfInfo : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sKey,setSKey:)) NSString* JV2_PROP_NM(o,0,sKey);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sValue,setSValue:)) NSString* JV2_PROP_NM(o,1,sValue);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttDNSReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttDNSReq : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sDomain,setSDomain:)) NSString* JV2_PROP_NM(r,0,sDomain);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iPort,setIPort:)) TarsInt32 JV2_PROP_NM(r,1,iPort);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIAgents/MttLoginAgent.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttLoginAgent.h
19 | //
20 | // Created by 壬俊 易 on 12-3-15.
21 | // Copyright (c) 2012年 Tencent. All rights reserved.
22 | //
23 |
24 | #import
25 | #import
26 | #import
27 |
28 | @interface MttLoginAgent : TupAgent
29 |
30 | - (MttLoginRsp *)login:(MttLoginReq *)request;
31 | - (id)login:(MttLoginReq *)request withCompleteHandle:(void (^)(MttLoginRsp *))handle;
32 |
33 | - (MttUpdateRsp *)update:(MttUserBase *)request;
34 | - (id)update:(MttUserBase *)request withCompleteHandle:(void (^)(MttUpdateRsp *))handle;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrokerJSPDInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttBrokerJSPDInfo : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iKey,setIKey:)) TarsInt32 JV2_PROP_NM(r,0,iKey);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vValue,setVValue:)) NSData* JV2_PROP_NM(r,1,vValue);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTJSPDInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSTJSPDInfo : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iKey,setIKey:)) TarsInt32 JV2_PROP_NM(r,0,iKey);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sContent,setSContent:)) NSData* JV2_PROP_NM(r,1,sContent);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttCityListRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttCityListRsp : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sCityList,setSCityList:)) NSString* JV2_PROP_NM(o,0,sCityList);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iTime,setITime:)) TarsInt32 JV2_PROP_NM(o,1,iTime);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPicInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttPicInfo : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sFileName,setSFileName:)) NSString* JV2_PROP_NM(r,0,sFileName);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vPicData,setVPicData:)) NSData* JV2_PROP_NM(r,1,vPicData);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/Serializable/JceEnumHelper.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // TarsEnumHelper.h
19 | // tup
20 | //
21 | // Created by 壬俊 易 on 12-6-13.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | BOOL isTarsEnumStringEqual(NSString *s1, NSString *s2);
28 |
29 | #define TarsEnum NSInteger
30 | #define TarsEnumUndefined NSIntegerMin
31 |
32 | @interface TarsEnumHelper : NSObject
33 |
34 | + (NSString *)etos:(TarsEnum)e;
35 | + (TarsEnum)stoe:(NSString *)s;
36 |
37 | /**
38 | * 以下接口用于转换不带枚举类型名前缀的枚举值字符串
39 | * 假设枚举值定义为TarsEnum_Value1,此接口对应处理的字符串是"Value1"
40 | */
41 | + (NSString *)eto_s:(TarsEnum)e;
42 | + (TarsEnum)_stoe:(NSString *)s;
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrokerPicParam.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttBrokerPicParam : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(vsUrl,setVsUrl:)) NSArray* JV2_PROP_EX(r,0,vsUrl,VONSString);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sCookie,setSCookie:)) NSString* JV2_PROP_NM(r,1,sCookie);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttItemReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttItemReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(itemId,setItemId:)) TarsInt32 JV2_PROP_NM(r,0,itemId);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(lastUpdateTime,setLastUpdateTime:)) TarsInt32 JV2_PROP_NM(r,1,lastUpdateTime);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSearchReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSearchReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(version,setVersion:)) TarsInt32 JV2_PROP_NM(r,0,version);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iSearchTime,setISearchTime:)) TarsInt32 JV2_PROP_NM(r,1,iSearchTime);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttETPV.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttURLPV.h"
25 |
26 | @interface MttETPV : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sURL,setSURL:)) NSString* JV2_PROP_NM(r,0,sURL);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(stURLPV,setStURLPV:)) NSArray* JV2_PROP_EX(r,1,stURLPV,VOMTTURLPV);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttHotWordsReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttHotWordsReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(version,setVersion:)) TarsInt8 JV2_PROP_NM(r,0,version);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sHotWordsMD5,setSHotWordsMD5:)) NSString* JV2_PROP_NM(r,1,sHotWordsMD5);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/Examples/BusinessData/MttHDLoginInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDLoginInfo.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttHDPersistentObject.h"
26 |
27 | @interface MttHDLoginInfo : MttHDPersistentObject
28 |
29 | @property (retain) NSData *guid;
30 | @property (retain) NSData *auth;
31 | @property (retain) NSMutableArray *proxyList;
32 | @property (retain) NSMutableArray *relayList;
33 | @property (assign) NSInteger loginTime;
34 | @property (assign) NSInteger statValue;
35 |
36 | + (MttHDLoginInfo *)theSpecial;
37 | - (void)updateRelayList:(NSArray *)list;
38 | - (void)updateProxyList:(NSArray *)list;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttHotWordsRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttHotWordsRsp : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(lastVersionMD5,setLastVersionMD5:)) NSString* JV2_PROP_NM(r,0,lastVersionMD5);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(hotwords,setHotwords:)) NSString* JV2_PROP_NM(r,1,hotwords);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttIPListReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttUserBase.h"
25 |
26 | @interface MttIPListReq : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(stUB,setStUB:)) MttUserBase* JV2_PROP_NM(r,0,stUB);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(bServerType,setBServerType:)) TarsInt8 JV2_PROP_NM(r,1,bServerType);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttKeywordRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttKeywordRsp : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(vWordInfo,setVWordInfo:)) NSArray* JV2_PROP_EX(r,0,vWordInfo,VONSString);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iKeywordTime,setIKeywordTime:)) TarsInt32 JV2_PROP_NM(r,1,iKeywordTime);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTTime.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSTTime : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iAvgProxyTime,setIAvgProxyTime:)) TarsInt32 JV2_PROP_NM(r,0,iAvgProxyTime);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iAvgDirectTime,setIAvgDirectTime:)) TarsInt32 JV2_PROP_NM(r,1,iAvgDirectTime);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSearchTypeReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSearchTypeReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(version,setVersion:)) TarsInt32 JV2_PROP_NM(o,0,version);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iSearchTypeTime,setISearchTypeTime:)) TarsInt32 JV2_PROP_NM(o,1,iSearchTypeTime);
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttExtDomain.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttEDomainType.h"
25 |
26 | @interface MttExtDomain : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sExtDomain,setSExtDomain:)) NSString* JV2_PROP_NM(o,0,sExtDomain);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(eType,setEType:)) MttEDomainType JV2_PROP_NM(o,1,eType);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPicRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttPicInfo.h"
25 |
26 | @interface MttPicRsp : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vPicInfo,setVPicInfo:)) NSArray* JV2_PROP_EX(r,0,vPicInfo,VOMTTPicInfo);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iPicTime,setIPicTime:)) TarsInt32 JV2_PROP_NM(r,1,iPicTime);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttConfRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttConfInfo.h"
25 |
26 | @interface MttConfRsp : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vConfInfo,setVConfInfo:)) NSArray* JV2_PROP_EX(o,0,vConfInfo,VOMTTConfInfo);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iConfTime,setIConfTime:)) TarsInt32 JV2_PROP_NM(o,1,iConfTime);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttIconRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttIconInfo.h"
25 |
26 | @interface MttIconRsp : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vIconInfo,setVIconInfo:)) NSArray* JV2_PROP_EX(r,0,vIconInfo,VOMTTIconInfo);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iIconTime,setIIconTime:)) TarsInt32 JV2_PROP_NM(r,1,iIconTime);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/BusinessData/MttHDVerifyInfo.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttHDVerifyInfo.m
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttHDVerifyInfo.h"
26 |
27 | @implementation MttHDVerifyInfo
28 |
29 | @synthesize verifyId = _verifyId;
30 | @synthesize parameter = _parameter;
31 |
32 | + (MttHDVerifyInfo *)theSpecial
33 | {
34 | static MttHDVerifyInfo *special = nil;
35 | if (special == nil) {
36 | special = [[super theSpecial] retain];
37 | }
38 | return special;
39 | }
40 |
41 | - (id)init
42 | {
43 | if (self = [super init]) {
44 | }
45 | return self;
46 | }
47 |
48 | - (void)dealloc
49 | {
50 | [_parameter release];
51 | [super dealloc];
52 | }
53 |
54 | @end
55 |
--------------------------------------------------------------------------------
/tup-python/wmain.py:
--------------------------------------------------------------------------------
1 | # Tencent is pleased to support the open source community by making Tars available.
2 | #
3 | # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
4 | #
5 | # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
6 | # in compliance with the License. You may obtain a copy of the License at
7 | #
8 | # https://opensource.org/licenses/BSD-3-Clause
9 | #
10 | # Unless required by applicable law or agreed to in writing, software distributed
11 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the
13 | # specific language governing permissions and limitations under the License.
14 | #
15 |
16 | from tars.core import tarscore;
17 |
18 | try:
19 | #STEP01 evaluate
20 | etup = tarscore.TarsUniPacket();
21 | etup.servant = "tars.registry.queryobj";
22 | etup.func = "getendpoints";
23 | etup.put(tarscore.int16, "aa", 12345);
24 | etup.put(tarscore.string, "bb", "abcdefghitssssssh");
25 |
26 | #STEP02 encode
27 | buff = etup.encode();
28 |
29 | #STEP03 decode
30 | dtup = tarscore.TarsUniPacket();
31 | dtup.decode(buff);
32 |
33 | #STEP04 get var
34 | aa = dtup.get(tarscore.int16, "aa");
35 | bb = dtup.get(tarscore.string, "bb");
36 |
37 | #STEP05 print vars
38 | print "servant:", dtup.servant;
39 | print "func:", dtup.func;
40 | print "aa:", aa;
41 | print "bb:", bb;
42 | except Exception as e:
43 | print e
44 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttDynamicReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttHotWordsReq.h"
25 | #import "MttUserBase.h"
26 |
27 | @interface MttDynamicReq : TarsObjectV2
28 |
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(stUB,setStUB:)) MttUserBase* JV2_PROP_NM(r,0,stUB);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(stHotWordsReq,setStHotWordsReq:)) MttHotWordsReq* JV2_PROP_NM(r,1,stHotWordsReq);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSearchTypeInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttSearchInfo.h"
25 |
26 | @interface MttSearchTypeInfo : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vSearchInfo,setVSearchInfo:)) NSArray* JV2_PROP_EX(o,0,vSearchInfo,VOMTTSearchInfo);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(sClassName,setSClassName:)) NSString* JV2_PROP_NM(o,1,sClassName);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttCheckPluginReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttPluginVersion.h"
25 | #import "MttUserBase.h"
26 |
27 | @interface MttCheckPluginReq : TarsObjectV2
28 |
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(stUB,setStUB:)) MttUserBase* JV2_PROP_NM(r,0,stUB);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(vItems,setVItems:)) NSArray* JV2_PROP_EX(r,1,vItems,VOMTTPluginVersion);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-csharp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ConsoleApplication1")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ConsoleApplication1")]
13 | [assembly: AssemblyCopyright("Copyright © 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("bb560eae-72c3-48b5-859c-412c167617da")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Protocol/MttBrokerSecurityResponse.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttBrokerSecurityResponse.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 |
27 | @interface MttBrokerSecurityResponse : TarsObjectV2
28 |
29 | @property (nonatomic, assign, JV2_PROP_GS(iSecurityLevel)) int JV2_PROP_NM(o, 0, iSecurityLevel); // 安全级别: 0-安全 1-高风险 2-普通风险 3-低风险
30 | @property (nonatomic, retain, JV2_PROP_GS(strSecurityType)) NSString* JV2_PROP_NM(o, 1, strSecurityType); // 安全信息类型描述, 如“恶意广告类风险网站”
31 | @property (nonatomic, retain, JV2_PROP_GS(vDetailDescription)) NSData* JV2_PROP_NM(o, 2, vDetailDescription); // 网址检测时为风险信息详细页面,下载资源检测时为软件分析检测信息
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/RMIModel/WupService.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // TupService.m
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "TupService.h"
26 | #import "TupAgent.h"
27 |
28 | @implementation TupService
29 |
30 | @synthesize agent = _agent;
31 |
32 | + (id)service
33 | {
34 | return [[[self alloc] init] autorelease];
35 | }
36 |
37 | + (void)cancel:(id)stub
38 | {
39 | [TupAgent cancel:stub];
40 | }
41 |
42 | - (id)init
43 | {
44 | assert(0);
45 | }
46 |
47 | - (id)initWithAgent:(TupAgent *)agent
48 | {
49 | if (self = [super init]) {
50 | _agent = [agent retain];
51 | }
52 | return self;
53 | }
54 |
55 | - (void)dealloc
56 | {
57 | [_agent release];
58 | [super dealloc];
59 | }
60 |
61 | @end
62 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttDirectPolicy.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttDirectPolicy_DIRECT_DOMAIN,
27 | MttDirectPolicy_DIRECT_NONE
28 | };
29 | #define MttDirectPolicy NSInteger
30 |
31 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
32 |
33 | @interface MttDirectPolicyHelper: TarsEnumHelper
34 |
35 | + (NSString *)etos:(MttDirectPolicy)e;
36 | + (MttDirectPolicy)stoe:(NSString *)s;
37 |
38 | @end
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttHotListReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttHotListReq : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sMd5,setSMd5:)) NSString* JV2_PROP_NM(o,0,sMd5);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iHotType,setIHotType:)) TarsInt32 JV2_PROP_NM(o,1,iHotType);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(sQua,setSQua:)) NSString* JV2_PROP_NM(o,2,sQua);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttURLPV.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttURLPV : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iEntry,setIEntry:)) TarsInt32 JV2_PROP_NM(r,0,iEntry);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(eEntryType,setEEntryType:)) TarsInt32 JV2_PROP_NM(r,1,eEntryType);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iPV,setIPV:)) TarsInt32 JV2_PROP_NM(r,2,iPV);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttMethod.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttMethod_GET,
27 | MttMethod_POST,
28 | MttMethod_CONNECT,
29 | MttMethod_CONNECTDATA
30 | };
31 | #define MttMethod NSInteger
32 |
33 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
34 |
35 | @interface MttMethodHelper: TarsEnumHelper
36 |
37 | + (NSString *)etos:(MttMethod)e;
38 | + (MttMethod)stoe:(NSString *)s;
39 |
40 | @end
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttAcceptEncoding.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttAcceptEncoding_ACCEPT_NORMAL,
27 | MttAcceptEncoding_ACCEPT_GZIP
28 | };
29 | #define MttAcceptEncoding NSInteger
30 |
31 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
32 |
33 | @interface MttAcceptEncodingHelper: TarsEnumHelper
34 |
35 | + (NSString *)etos:(MttAcceptEncoding)e;
36 | + (MttAcceptEncoding)stoe:(NSString *)s;
37 |
38 | @end
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttIconInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttIconInfo : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iIconId,setIIconId:)) TarsInt32 JV2_PROP_NM(r,0,iIconId);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sIconName,setSIconName:)) NSString* JV2_PROP_NM(r,1,sIconName);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vIconData,setVIconData:)) NSData* JV2_PROP_NM(r,2,vIconData);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPushSysNotify.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttPushSysNotify : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(cPriority,setCPriority:)) TarsInt8 JV2_PROP_NM(r,0,cPriority);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(cType,setCType:)) TarsInt8 JV2_PROP_NM(r,1,cType);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(strData,setStrData:)) NSString* JV2_PROP_NM(r,2,strData);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Protocol/MttBrokerSecurityResponse.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttBrokerSecurityResponse.m
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-15.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttBrokerSecurityResponse.h"
26 |
27 | @implementation MttBrokerSecurityResponse
28 |
29 | @synthesize JV2_PROP_NM(o, 0, iSecurityLevel);
30 | @synthesize JV2_PROP_NM(o, 1, strSecurityType);
31 | @synthesize JV2_PROP_NM(o, 2, vDetailDescription);
32 |
33 | - (id)init
34 | {
35 | if (self = [super init]) {
36 | }
37 | return self;
38 | }
39 |
40 | - (void)dealloc
41 | {
42 | self.tars_strSecurityType = nil;
43 | self.tars_vDetailDescription = nil;
44 | [super dealloc];
45 | }
46 |
47 | + (NSString *)tarsType
48 | {
49 | return @"Mtt.BrokerSecurityResponse";
50 | }
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttContentEncoding.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttContentEncoding_CONTENT_NORMAL,
27 | MttContentEncoding_CONTENT_GZIP
28 | };
29 | #define MttContentEncoding NSInteger
30 |
31 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
32 |
33 | @interface MttContentEncodingHelper: TarsEnumHelper
34 |
35 | + (NSString *)etos:(MttContentEncoding)e;
36 | + (MttContentEncoding)stoe:(NSString *)s;
37 |
38 | @end
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttERelayProtoVer.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttERelayProtoVer_PROTOCOL_VERSION_1,
27 | MttERelayProtoVer_PROTOCOL_VERSION_2
28 | };
29 | #define MttERelayProtoVer NSInteger
30 |
31 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
32 |
33 | @interface MttERelayProtoVerHelper: TarsEnumHelper
34 |
35 | + (NSString *)etos:(MttERelayProtoVer)e;
36 | + (MttERelayProtoVer)stoe:(NSString *)s;
37 |
38 | @end
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttItemRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttItemRsp : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(itemId,setItemId:)) TarsInt32 JV2_PROP_NM(r,0,itemId);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(lastUpdateTime,setLastUpdateTime:)) TarsInt32 JV2_PROP_NM(r,1,lastUpdateTime);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(content,setContent:)) NSString* JV2_PROP_NM(r,2,content);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSecurityCheckType.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttSecurityCheckType_SCT_WEBURL,
27 | MttSecurityCheckType_SCT_SOFT
28 | };
29 | #define MttSecurityCheckType NSInteger
30 |
31 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
32 |
33 | @interface MttSecurityCheckTypeHelper: TarsEnumHelper
34 |
35 | + (NSString *)etos:(MttSecurityCheckType)e;
36 | + (MttSecurityCheckType)stoe:(NSString *)s;
37 |
38 | @end
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrokerPushResponse.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttPushRespnoseContent.h"
25 |
26 | @interface MttBrokerPushResponse : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iPushTime,setIPushTime:)) TarsInt32 JV2_PROP_NM(r,0,iPushTime);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vPushRespContentList,setVPushRespContentList:)) NSArray* JV2_PROP_EX(r,1,vPushRespContentList,VOMTTPushRespnoseContent);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tup/Serializable/UniPacket.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // UniPacket.h
19 | //
20 | // Created by 壬俊 易 on 11-12-1.
21 | // Copyright (c) 2011年 Tencent. All rights reserved.
22 | //
23 |
24 | #import "RequestF.h"
25 | #import "TarsObjectV2.h"
26 | #import "UniAttribute.h"
27 |
28 | @interface UniPacket : RequestPacket
29 |
30 | @property (nonatomic, readonly) UniAttribute* attributes;
31 |
32 | + (UniPacket *)packet;
33 |
34 | #pragma mark - deprecated
35 |
36 | // 下面的这些接口已经废弃不用了,要设置/获取参数,建议使用UniAttribute.h中的方法
37 | - (id)getObjectAttr:(NSString *)attrName forClass:(Class)theClass;
38 | - (void)putDataAttr:(NSString *)attrName value:(NSData *)attrValue;
39 | - (void)putObjectAttr:(NSString *)attrName value:(TarsObjectV2 *)attrValue;
40 | - (void)putObjectAttr:(NSString *)attrName type:(NSString *)attrType value:(TarsObject *)attrValue;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttErrorCode.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttErrorCode_ERROR_PROTOCOL,
27 | MttErrorCode_ERROR_REFUSE_REQUEST,
28 | MttErrorCode_ERROR_UNSUPPORTED_VERSION
29 | };
30 | #define MttErrorCode NSInteger
31 |
32 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
33 |
34 | @interface MttErrorCodeHelper: TarsEnumHelper
35 |
36 | + (NSString *)etos:(MttErrorCode)e;
37 | + (MttErrorCode)stoe:(NSString *)s;
38 |
39 | @end
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSpecialValue.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttSpecialValue_ONELINK = 1,
27 | MttSpecialValue_MTKWAP = 2,
28 | MttSpecialValue_ANDROIDWM = 4
29 | };
30 | #define MttSpecialValue NSInteger
31 |
32 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
33 |
34 | @interface MttSpecialValueHelper: TarsEnumHelper
35 |
36 | + (NSString *)etos:(MttSpecialValue)e;
37 | + (MttSpecialValue)stoe:(NSString *)s;
38 |
39 | @end
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2018, THE TARS FOUNDATION
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | 1. Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | 2. Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | 3. Neither the name of the copyright holder nor the names of its
17 | contributors may be used to endorse or promote products derived from
18 | this software without specific prior written permission.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttHotWordInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttHotWordInfo : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sHotWordName,setSHotWordName:)) NSString* JV2_PROP_NM(o,0,sHotWordName);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sHotWordUrl,setSHotWordUrl:)) NSString* JV2_PROP_NM(o,1,sHotWordUrl);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iHotType,setIHotType:)) TarsInt32 JV2_PROP_NM(o,2,iHotType);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPluginVersion.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttPluginVersion : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sType,setSType:)) NSString* JV2_PROP_NM(r,0,sType);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sVersion,setSVersion:)) NSString* JV2_PROP_NM(o,1,sVersion);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(mSpecCond,setMSpecCond:)) NSDictionary* JV2_PROP_EX(o,2,mSpecCond,M09ONSStringONSString);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrokerReqType.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttBrokerReqType_EREQ_NORMAL = 0,
27 | MttBrokerReqType_EREQ_FAIL_RETRY = 1,
28 | MttBrokerReqType_EREQ_BROKER = 2
29 | };
30 | #define MttBrokerReqType NSInteger
31 |
32 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
33 |
34 | @interface MttBrokerReqTypeHelper: TarsEnumHelper
35 |
36 | + (NSString *)etos:(MttBrokerReqType)e;
37 | + (MttBrokerReqType)stoe:(NSString *)s;
38 |
39 | @end
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttEWaitPushType.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttEWaitPushType_USE_WAITPUSHTIME = 0,
27 | MttEWaitPushType_USE_OLD = 1,
28 | MttEWaitPushType_CANCEL_PUSH = 2
29 | };
30 | #define MttEWaitPushType NSInteger
31 |
32 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
33 |
34 | @interface MttEWaitPushTypeHelper: TarsEnumHelper
35 |
36 | + (NSString *)etos:(MttEWaitPushType)e;
37 | + (MttEWaitPushType)stoe:(NSString *)s;
38 |
39 | @end
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttNaviRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttNavigation.h"
25 |
26 | @interface MttNaviRsp : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(id,setId:)) TarsInt32 JV2_PROP_NM(o,0,id);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vNavigation,setVNavigation:)) NSArray* JV2_PROP_EX(o,1,vNavigation,VOMTTNavigation);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iNaviTime,setINaviTime:)) TarsInt32 JV2_PROP_NM(o,2,iNaviTime);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPageReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttItemReq.h"
25 |
26 | @interface MttPageReq : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(pageId,setPageId:)) TarsInt32 JV2_PROP_NM(r,0,pageId);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(lastUpdateTime,setLastUpdateTime:)) TarsInt32 JV2_PROP_NM(r,1,lastUpdateTime);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(items,setItems:)) NSArray* JV2_PROP_EX(r,2,items,VOMTTItemReq);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTJSInfo.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttSTJSPDInfo.h"
25 |
26 | @interface MttSTJSInfo : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(cJSEvent,setCJSEvent:)) TarsInt8 JV2_PROP_NM(r,0,cJSEvent);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iJSQD,setIJSQD:)) TarsInt32 JV2_PROP_NM(r,1,iJSQD);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(vSTPDInfo,setVSTPDInfo:)) NSArray* JV2_PROP_EX(r,2,vSTPDInfo,VOMTTSTJSPDInfo);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTOperatorRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSTOperatorRsp : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iReportTime,setIReportTime:)) TarsInt32 JV2_PROP_NM(r,0,iReportTime);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iReportTrigger,setIReportTrigger:)) TarsInt32 JV2_PROP_NM(r,1,iReportTrigger);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iSendUserID,setISendUserID:)) TarsInt32 JV2_PROP_NM(r,2,iSendUserID);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-csharp/tup/Const.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | namespace Tup
18 | {
19 | internal class Const
20 | {
21 | public static string STATUS_GRID_KEY = "STATUS_GRID_KEY";
22 | public static string STATUS_DYED_KEY = "STATUS_DYED_KEY";
23 | public static string STATUS_GRID_CODE = "STATUS_GRID_CODE";
24 | public static string STATUS_SAMPLE_KEY = "STATUS_SAMPLE_KEY";
25 | public static string STATUS_RESULT_CODE = "STATUS_RESULT_CODE";
26 | public static string STATUS_RESULT_DESC = "STATUS_RESULT_DESC";
27 |
28 | public static int INVALID_HASH_CODE = -1;
29 | public static int INVALID_GRID_CODE = -1;
30 |
31 | public static byte PACKET_TYPE_TARSNORMAL = 0;
32 | public static byte PACKET_TYPE_TARSONEWAY = 1;
33 | public static byte PACKET_TYPE_TUP = 2;
34 | public static byte PACKET_TYPE_TUP3 = 3;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttEUSESTAT.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttEUSESTAT_NAVIGATION,
27 | MttEUSESTAT_UPDATE,
28 | MttEUSESTAT_ZONE,
29 | MttEUSESTAT_MAIL,
30 | MttEUSESTAT_CHAT,
31 | MttEUSESTAT_UOTHER
32 | };
33 | #define MttEUSESTAT NSInteger
34 |
35 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
36 |
37 | @interface MttEUSESTATHelper: TarsEnumHelper
38 |
39 | + (NSString *)etos:(MttEUSESTAT)e;
40 | + (MttEUSESTAT)stoe:(NSString *)s;
41 |
42 | @end
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttIPListRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttIPListRsp : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(vQProxyList,setVQProxyList:)) NSArray* JV2_PROP_EX(o,0,vQProxyList,VONSString);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(vProxyList,setVProxyList:)) NSArray* JV2_PROP_EX(o,1,vProxyList,VONSString);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vRelayList,setVRelayList:)) NSArray* JV2_PROP_EX(o,2,vRelayList,VONSString);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/RMIAgents/MttConfigAgent.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttConfigAgent.h
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-3-21.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import
26 | #import
27 | #import
28 | #import
29 | #import
30 |
31 | @interface MttConfigAgent : TupAgent
32 |
33 | - (MttPageConfigRsp *)getPageConfig:(MttPageConfigReq *)request;
34 | - (id)getPageConfig:(MttPageConfigReq *)request withCompleteHandle:(void (^)(MttPageConfigRsp *))handle;
35 |
36 | - (MttSplashRsp *)getSplash:(MttSplashReq *)request;
37 | - (id)getSplash:(MttSplashReq *)request withCompleteHandle:(void (^)(MttSplashRsp *))handle;
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttSplashReq+Adapter.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttSplashReq+Adapter.m
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-4.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttHDTupAdapters.h"
26 | #import "MttHDSplashInfo.h"
27 |
28 | @implementation MttSplashReq (Adapter)
29 |
30 | + (id)mtthdInstance
31 | {
32 | MttSplashReq *instance = [MttSplashReq object];
33 | MttHDSplashInfo *splashInfo = [MttHDSplashInfo theSpecial];
34 | instance.tars_stUB = [MttUserBase mtthdInstance];
35 | instance.tars_iWidth = [[UIScreen mainScreen] applicationFrame].size.width;
36 | instance.tars_iHeight = [[UIScreen mainScreen] applicationFrame].size.height;
37 | instance.tars_sPicMd5 = splashInfo.md5StringOfSplashImage;
38 | instance.tars_sCondMd5 = splashInfo.md5StringOfSplashConfig;
39 | return instance;
40 | }
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttHotListRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttHotWordInfo.h"
25 |
26 | @interface MttHotListRsp : TarsObjectV2
27 |
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sMd5,setSMd5:)) NSString* JV2_PROP_NM(o,0,sMd5);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vHotWordsList,setVHotWordsList:)) NSArray* JV2_PROP_EX(o,1,vHotWordsList,VOMTTHotWordInfo);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iIntervalTime,setIIntervalTime:)) TarsInt32 JV2_PROP_NM(o,2,iIntervalTime);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttWeatherRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttWeatherInfo.h"
25 |
26 | @interface MttWeatherRsp : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iUpdateTime,setIUpdateTime:)) TarsInt32 JV2_PROP_NM(o,0,iUpdateTime);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(sCityName,setSCityName:)) NSString* JV2_PROP_NM(o,1,sCityName);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(vWeatherInfo,setVWeatherInfo:)) NSArray* JV2_PROP_EX(o,2,vWeatherInfo,VOMTTWeatherInfo);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-csharp/tars/TarsStruct.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 |
18 | using System.Text;
19 |
20 | using Tup.Tars;
21 |
22 | namespace Tup.Tars
23 | {
24 | internal enum TarsStructType
25 | {
26 | BYTE = 0,
27 | SHORT = 1,
28 | INT = 2,
29 | LONG = 3,
30 | FLOAT = 4,
31 | DOUBLE = 5,
32 | STRING1 = 6,
33 | STRING4 = 7,
34 | MAP = 8,
35 | LIST = 9,
36 | STRUCT_BEGIN = 10,
37 | STRUCT_END = 11,
38 | ZERO_TAG = 12,
39 | SIMPLE_LIST = 13,
40 | }
41 |
42 | public abstract class TarsStruct
43 | {
44 | public static int TARS_MAX_STRING_LENGTH = 100 * 1024 * 1024;
45 |
46 | public abstract void WriteTo(TarsOutputStream _os);
47 | public abstract void ReadFrom(TarsInputStream _is);
48 | public virtual void Display(StringBuilder sb, int level)
49 | {
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttFKINFO.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttFKINFO : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iStyle,setIStyle:)) TarsInt32 JV2_PROP_NM(r,0,iStyle);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(eFastKey,setEFastKey:)) TarsInt32 JV2_PROP_NM(r,1,eFastKey);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(sKey,setSKey:)) NSString* JV2_PROP_NM(r,2,sKey);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iUse,setIUse:)) TarsInt32 JV2_PROP_NM(r,3,iUse);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTSpeedStatis.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttSTSpeedStatis : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iLastRequestID,setILastRequestID:)) TarsInt32 JV2_PROP_NM(r,0,iLastRequestID);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iRecvFirstByteTime,setIRecvFirstByteTime:)) TarsInt32 JV2_PROP_NM(r,1,iRecvFirstByteTime);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iRecvAllDataTime,setIRecvAllDataTime:)) TarsInt32 JV2_PROP_NM(r,2,iRecvAllDataTime);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/Examples/Adapters/MttUserBase+Adapter.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | //
18 | // MttUserBase+Adapter.m
19 | // MttHD
20 | //
21 | // Created by 壬俊 易 on 12-4-19.
22 | // Copyright (c) 2012年 Tencent. All rights reserved.
23 | //
24 |
25 | #import "MttUserBase+adapter.h"
26 | #import "MttHDTupManager.h"
27 |
28 | @implementation MttUserBase (adapter)
29 |
30 | + (id)mtthdInstance
31 | {
32 | MttUserBase *instance = [MttUserBase object];
33 | instance.tars_sIMEI = [MttHDTupEnvironment imei];
34 | instance.tars_sGUID = [MttHDLoginInfo theSpecial].guid;
35 | instance.tars_sQUA = [MttHDTupEnvironment qUA];
36 | instance.tars_sLC = [MttHDTupEnvironment lc];
37 | instance.tars_sCellphone = @"";
38 | instance.tars_sUin = [MttHDTupEnvironment qqAccount];
39 | instance.tars_sChannel = [MttHDTupEnvironment channel];
40 | instance.tars_iServerVer = MttServerVer_IPAD;
41 | return instance;
42 | }
43 |
44 | @end
45 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrowserVersion.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | enum {
26 | MttBrowserVersion_OLDWAP1,
27 | MttBrowserVersion_OLDWAP2,
28 | MttBrowserVersion_NEWWAP1,
29 | MttBrowserVersion_NEWWAP2,
30 | MttBrowserVersion_HTML5
31 | };
32 | #define MttBrowserVersion NSInteger
33 |
34 | #if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED
35 |
36 | @interface MttBrowserVersionHelper: TarsEnumHelper
37 |
38 | + (NSString *)etos:(MttBrowserVersion)e;
39 | + (MttBrowserVersion)stoe:(NSString *)s;
40 |
41 | @end
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttImageRsp.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttImageRsp.h"
24 |
25 | @implementation MttImageRsp
26 |
27 | @synthesize JV2_PROP_NM(r,0,iRspPicSize);
28 |
29 | + (void)initialize
30 | {
31 | if (self == [MttImageRsp class]) {
32 | [super initialize];
33 | }
34 | }
35 |
36 | - (id)init
37 | {
38 | if (self = [super init]) {
39 | }
40 | return self;
41 | }
42 |
43 | - (void)dealloc
44 | {
45 | [super dealloc];
46 | }
47 |
48 | + (NSString*)tarsType
49 | {
50 | return @"MTT.ImageRsp";
51 | }
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttImgRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttImgRsp : TarsObjectV2
26 |
27 | @property (nonatomic, retain, JV2_PROP_GS_V2(sName,setSName:)) NSString* JV2_PROP_NM(o,0,sName);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sData,setSData:)) NSData* JV2_PROP_NM(o,1,sData);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iImgTime,setIImgTime:)) TarsInt32 JV2_PROP_NM(o,2,iImgTime);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iLinkType,setILinkType:)) TarsInt32 JV2_PROP_NM(o,3,iLinkType);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttLPageReq.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttLPageReq.h"
24 |
25 | @implementation MttLPageReq
26 |
27 | @synthesize JV2_PROP_NM(o,0,iLoginPageTime);
28 |
29 | + (void)initialize
30 | {
31 | if (self == [MttLPageReq class]) {
32 | [super initialize];
33 | }
34 | }
35 |
36 | - (id)init
37 | {
38 | if (self = [super init]) {
39 | }
40 | return self;
41 | }
42 |
43 | - (void)dealloc
44 | {
45 | [super dealloc];
46 | }
47 |
48 | + (NSString*)tarsType
49 | {
50 | return @"MTT.LPageReq";
51 | }
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrokerSecurityResponse.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttBrokerSecurityResponse : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iSecurityLevel,setISecurityLevel:)) TarsInt32 JV2_PROP_NM(o,0,iSecurityLevel);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(strSecurityType,setStrSecurityType:)) NSString* JV2_PROP_NM(o,1,strSecurityType);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vDetailDescription,setVDetailDescription:)) NSData* JV2_PROP_NM(o,2,vDetailDescription);
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttWeatherRsp4Mini.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttWeatherInfo4Mini.h"
25 |
26 | @interface MttWeatherRsp4Mini : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iUpdateTime,setIUpdateTime:)) TarsInt32 JV2_PROP_NM(o,0,iUpdateTime);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(sCityName,setSCityName:)) NSString* JV2_PROP_NM(o,1,sCityName);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(vWeatherInfo,setVWeatherInfo:)) NSArray* JV2_PROP_EX(o,2,vWeatherInfo,VOMTTWeatherInfo4Mini);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttAdsReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttAdsReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iPosId,setIPosId:)) TarsInt32 JV2_PROP_NM(o,0,iPosId);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iUpdateTime,setIUpdateTime:)) TarsInt32 JV2_PROP_NM(o,1,iUpdateTime);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iNumber,setINumber:)) TarsInt32 JV2_PROP_NM(o,2,iNumber);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iQBType,setIQBType:)) TarsInt32 JV2_PROP_NM(o,3,iQBType);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttPing.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttPing.h"
24 |
25 | @implementation MttPing
26 |
27 | @synthesize JV2_PROP_NM(r,0,cReserved);
28 |
29 | + (void)initialize
30 | {
31 | if (self == [MttPing class]) {
32 | [super initialize];
33 | }
34 | }
35 |
36 | - (id)init
37 | {
38 | if (self = [super init]) {
39 | JV2_PROP(cReserved) = 1;
40 | }
41 | return self;
42 | }
43 |
44 | - (void)dealloc
45 | {
46 | [super dealloc];
47 | }
48 |
49 | + (NSString*)tarsType
50 | {
51 | return @"MTT.Ping";
52 | }
53 |
54 | @end
55 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTImagePolicy.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttSTImagePolicy.h"
24 |
25 | @implementation MttSTImagePolicy
26 |
27 | @synthesize JV2_PROP_NM(r,0,iMaxRetNum);
28 |
29 | + (void)initialize
30 | {
31 | if (self == [MttSTImagePolicy class]) {
32 | [super initialize];
33 | }
34 | }
35 |
36 | - (id)init
37 | {
38 | if (self = [super init]) {
39 | }
40 | return self;
41 | }
42 |
43 | - (void)dealloc
44 | {
45 | [super dealloc];
46 | }
47 |
48 | + (NSString*)tarsType
49 | {
50 | return @"MTT.STImagePolicy";
51 | }
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrokerWups.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttBrokerTups : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(cEncryptType,setCEncryptType:)) TarsInt8 JV2_PROP_NM(r,0,cEncryptType);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iPKeyId,setIPKeyId:)) TarsInt32 JV2_PROP_NM(o,1,iPKeyId);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vbMDataKey,setVbMDataKey:)) NSData* JV2_PROP_NM(o,2,vbMDataKey);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(vbMData,setVbMData:)) NSData* JV2_PROP_NM(r,3,vbMData);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttBrowserReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 | #import "MttPageReq.h"
25 |
26 | @interface MttBrowserReq : TarsObjectV2
27 |
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(version,setVersion:)) TarsInt32 JV2_PROP_NM(r,0,version);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(size,setSize:)) TarsInt8 JV2_PROP_NM(r,1,size);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(pages,setPages:)) NSArray* JV2_PROP_EX(r,2,pages,VOMTTPageReq);
31 | @property (nonatomic, assign, JV2_PROP_GS_V2(special,setSpecial:)) TarsInt32 JV2_PROP_NM(o,3,special);
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttCityListReq.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttCityListReq.h"
24 |
25 | @implementation MttCityListReq
26 |
27 | @synthesize JV2_PROP_NM(o,0,iTime);
28 |
29 | + (void)initialize
30 | {
31 | if (self == [MttCityListReq class]) {
32 | [super initialize];
33 | }
34 | }
35 |
36 | - (id)init
37 | {
38 | if (self = [super init]) {
39 | JV2_PROP(iTime) = -1;
40 | }
41 | return self;
42 | }
43 |
44 | - (void)dealloc
45 | {
46 | [super dealloc];
47 | }
48 |
49 | + (NSString*)tarsType
50 | {
51 | return @"MTT.CityListReq";
52 | }
53 |
54 | @end
55 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttItemReq.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttItemReq.h"
24 |
25 | @implementation MttItemReq
26 |
27 | @synthesize JV2_PROP_NM(r,0,itemId);
28 | @synthesize JV2_PROP_NM(r,1,lastUpdateTime);
29 |
30 | + (void)initialize
31 | {
32 | if (self == [MttItemReq class]) {
33 | [super initialize];
34 | }
35 | }
36 |
37 | - (id)init
38 | {
39 | if (self = [super init]) {
40 | }
41 | return self;
42 | }
43 |
44 | - (void)dealloc
45 | {
46 | [super dealloc];
47 | }
48 |
49 | + (NSString*)tarsType
50 | {
51 | return @"MTT.ItemReq";
52 | }
53 |
54 | @end
55 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttRefuse.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttRefuse : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(wVersion,setWVersion:)) TarsInt16 JV2_PROP_NM(r,0,wVersion);
28 | @property (nonatomic, retain, JV2_PROP_GS_V2(sSessionID,setSSessionID:)) NSString* JV2_PROP_NM(r,1,sSessionID);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iRequestID,setIRequestID:)) TarsInt32 JV2_PROP_NM(r,2,iRequestID);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iStatusCode,setIStatusCode:)) TarsInt32 JV2_PROP_NM(r,3,iStatusCode);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttSTTime.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "MttSTTime.h"
24 |
25 | @implementation MttSTTime
26 |
27 | @synthesize JV2_PROP_NM(r,0,iAvgProxyTime);
28 | @synthesize JV2_PROP_NM(r,1,iAvgDirectTime);
29 |
30 | + (void)initialize
31 | {
32 | if (self == [MttSTTime class]) {
33 | [super initialize];
34 | }
35 | }
36 |
37 | - (id)init
38 | {
39 | if (self = [super init]) {
40 | }
41 | return self;
42 | }
43 |
44 | - (void)dealloc
45 | {
46 | [super dealloc];
47 | }
48 |
49 | + (NSString*)tarsType
50 | {
51 | return @"MTT.STTime";
52 | }
53 |
54 | @end
55 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttVerifyRsp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttVerifyRsp : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iVerifyId,setIVerifyId:)) TarsInt32 JV2_PROP_NM(r,0,iVerifyId);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iCommand,setICommand:)) TarsInt32 JV2_PROP_NM(r,1,iCommand);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(sParameter,setSParameter:)) NSString* JV2_PROP_NM(r,2,sParameter);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iServerTime,setIServerTime:)) TarsInt32 JV2_PROP_NM(r,3,iServerTime);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttVerifyRspExt.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttVerifyRspExt : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iVerifyId,setIVerifyId:)) TarsInt32 JV2_PROP_NM(r,0,iVerifyId);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iCommand,setICommand:)) TarsInt32 JV2_PROP_NM(r,1,iCommand);
29 | @property (nonatomic, retain, JV2_PROP_GS_V2(vParameter,setVParameter:)) NSData* JV2_PROP_NM(r,2,vParameter);
30 | @property (nonatomic, assign, JV2_PROP_GS_V2(iServerTime,setIServerTime:)) TarsInt32 JV2_PROP_NM(r,3,iServerTime);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/tup-oc/tup/tupTests/Protocol/Mtt/MttWeatherReq.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making Tars available.
3 | *
4 | * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
5 | *
6 | * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7 | * in compliance with the License. You may obtain a copy of the License at
8 | *
9 | * https://opensource.org/licenses/BSD-3-Clause
10 | *
11 | * Unless required by applicable law or agreed to in writing, software distributed
12 | * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 | * CONDITIONS OF ANY KIND, either express or implied. See the License for the
14 | * specific language governing permissions and limitations under the License.
15 | */
16 |
17 | // **********************************************************************
18 | // This file was generated by a TARS parser!
19 | // TARS version 2.1.4.2 by WSRD Tencent.
20 | // Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
21 | // **********************************************************************
22 |
23 | #import "TarsObjectV2.h"
24 |
25 | @interface MttWeatherReq : TarsObjectV2
26 |
27 | @property (nonatomic, assign, JV2_PROP_GS_V2(iDayIndex,setIDayIndex:)) TarsInt32 JV2_PROP_NM(o,0,iDayIndex);
28 | @property (nonatomic, assign, JV2_PROP_GS_V2(iDayCount,setIDayCount:)) TarsInt32 JV2_PROP_NM(o,1,iDayCount);
29 | @property (nonatomic, assign, JV2_PROP_GS_V2(iUpdateTime,setIUpdateTime:)) TarsInt32 JV2_PROP_NM(o,2,iUpdateTime);
30 | @property (nonatomic, retain, JV2_PROP_GS_V2(sCityName,setSCityName:)) NSString* JV2_PROP_NM(o,3,sCityName);
31 |
32 | @end
33 |
--------------------------------------------------------------------------------