paraworld.map.GetMapMarkOfPage
Description
取得某用户的某种类型的MapMark中某一页的数据
Parameters
Required |
Name |
Type |
Description |
required |
ownerUserID |
string |
所有者用户ID |
markType |
int |
Mark类型,若为0,则不计 |
pageSize |
int |
每页的数据量 |
pageIndex |
int |
第几页,从0开始计 |
Example Return XML
<msg>
<pageCount type="double">1</pageCount>
<marks>
<param index="1">
<markID type="double">4</markID>
<markType type="double">1</markType>
<markTitle type="string">Test Mark1</markTitle>
<markStyle type="double">2</markStyle>
<x type="double">3.0517578125E-05</x>
<y type="double">3.0517578125E-05</y>
<isApproved type="boolean">True</isApproved>
</param>
<param index="2">
<markID type="double">3</markID>
<markType type="double">1</markType>
<markTitle type="string">Test Mark2</markTitle>
<markStyle type="double">2</markStyle>
<x type="double">0</x>
<y type="double">3.0517578125E-05</y>
<isApproved type="boolean">True</isApproved>
</param>
</marks>
</msg>
Error Codes
当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录
Test Cases
case 1
Input:
{
["markType"]=0,
["pageIndex"]=0,
["pageSize"]=5,
["ownerUserID"]="fae5feb1-9d4f-4a78-843a-1710992d4e70",
}
Result:
{
["pageCount"]=1,
["marks"]={
[1]={
["markTitle"]="Test Mark1",
["x"]=0.38818359375,
["isApproved"]=true,
["markType"]=1,
["markStyle"]=22,
["markID"]=9,
["y"]=0.7001953125,
},
[2]={
["markTitle"]="Test Mark2",
["x"]=8.392333984375e-005,
["isApproved"]=true,
["markType"]=1,
["markStyle"]=21,
["markID"]=7,
["y"]=6.103515625e-005,
},
},
}
Topic revision: r1 - 2008-06-10
- CaoYF