POST api/Person/PersonPhotoAndName

User register for register information [watch]

Request Information

Body Parameters

PersonPhotoAndNameModel
NameDescriptionTypeAdditional information
UserId

Login user id

integer

None.

DeviceId

device id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "DeviceId": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<PersonPhotoAndNameModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <DeviceId>2</DeviceId>
  <UserId>1</UserId>
</PersonPhotoAndNameModel>

Response Information

Resource Description

State status
0. Indicates success
1100. There is no such device
4000. Says failure

PersonPhotoAndNameResult
NameDescriptionTypeAdditional information
Photo

wearer head potrait

string

None.

Name

wearer name

string

None.

Message

Return illustrate

string

None.

Items

Grouping list

Collection of UserGroupInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Photo": "sample string 1",
  "Name": "sample string 2",
  "Message": "sample string 3",
  "Items": [
    {
      "Id": 1,
      "GroupName": "sample string 2",
      "Icon": "sample string 3",
      "UserId": 4,
      "SubGroups": [
        {
          "SubGroupId": 1,
          "GroupName": "sample string 2",
          "Icon": "sample string 3",
          "UserId": 4
        },
        {
          "SubGroupId": 1,
          "GroupName": "sample string 2",
          "Icon": "sample string 3",
          "UserId": 4
        }
      ]
    },
    {
      "Id": 1,
      "GroupName": "sample string 2",
      "Icon": "sample string 3",
      "UserId": 4,
      "SubGroups": [
        {
          "SubGroupId": 1,
          "GroupName": "sample string 2",
          "Icon": "sample string 3",
          "UserId": 4
        },
        {
          "SubGroupId": 1,
          "GroupName": "sample string 2",
          "Icon": "sample string 3",
          "UserId": 4
        }
      ]
    }
  ],
  "State": 4
}

application/xml, text/xml

Sample:
<PersonPhotoAndNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>4</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:UserGroupInfo>
      <d2p1:GroupName>sample string 2</d2p1:GroupName>
      <d2p1:Icon>sample string 3</d2p1:Icon>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:SubGroups>
        <d2p1:SubUserGroupInfo>
          <d2p1:GroupName>sample string 2</d2p1:GroupName>
          <d2p1:Icon>sample string 3</d2p1:Icon>
          <d2p1:SubGroupId>1</d2p1:SubGroupId>
          <d2p1:UserId>4</d2p1:UserId>
        </d2p1:SubUserGroupInfo>
        <d2p1:SubUserGroupInfo>
          <d2p1:GroupName>sample string 2</d2p1:GroupName>
          <d2p1:Icon>sample string 3</d2p1:Icon>
          <d2p1:SubGroupId>1</d2p1:SubGroupId>
          <d2p1:UserId>4</d2p1:UserId>
        </d2p1:SubUserGroupInfo>
      </d2p1:SubGroups>
      <d2p1:UserId>4</d2p1:UserId>
    </d2p1:UserGroupInfo>
    <d2p1:UserGroupInfo>
      <d2p1:GroupName>sample string 2</d2p1:GroupName>
      <d2p1:Icon>sample string 3</d2p1:Icon>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:SubGroups>
        <d2p1:SubUserGroupInfo>
          <d2p1:GroupName>sample string 2</d2p1:GroupName>
          <d2p1:Icon>sample string 3</d2p1:Icon>
          <d2p1:SubGroupId>1</d2p1:SubGroupId>
          <d2p1:UserId>4</d2p1:UserId>
        </d2p1:SubUserGroupInfo>
        <d2p1:SubUserGroupInfo>
          <d2p1:GroupName>sample string 2</d2p1:GroupName>
          <d2p1:Icon>sample string 3</d2p1:Icon>
          <d2p1:SubGroupId>1</d2p1:SubGroupId>
          <d2p1:UserId>4</d2p1:UserId>
        </d2p1:SubUserGroupInfo>
      </d2p1:SubGroups>
      <d2p1:UserId>4</d2p1:UserId>
    </d2p1:UserGroupInfo>
  </Items>
  <Message>sample string 3</Message>
  <Name>sample string 2</Name>
  <Photo>sample string 1</Photo>
</PersonPhotoAndNameResult>