This function will return a list of all available locks in the database that have already been initialized. INPUTS==> sort information (FILTER STRING, COLUMN, SORT ORDER). RETURN==> list of locks
None.
BrowseLockRequest
BrowseLockRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| LocationId |
Location ID |
string |
None. |
| FilterColumn | string |
None. |
|
| FilterString | string |
None. |
|
| SortOrder | SortOrder |
None. |
|
| SortColumn | string |
None. |
|
| Page |
PageNumber |
integer |
Range: inclusive between 1 and 100000 |
| PageSize |
Page Size |
integer |
Range: inclusive between 1 and 100000 |
{
"LocationId": "sample string 1",
"FilterColumn": "sample string 2",
"FilterString": "sample string 3",
"SortOrder": 0,
"SortColumn": "sample string 4",
"Page": 5,
"PageSize": 6
}
<BrowseLockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests.Lock"> <Page xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests">5</Page> <PageSize xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests">6</PageSize> <SortColumn xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests">sample string 4</SortColumn> <SortOrder xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests">Ascending</SortOrder> <FilterColumn xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests">sample string 2</FilterColumn> <FilterString xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Requests">sample string 3</FilterString> <LocationId>sample string 1</LocationId> </BrowseLockRequest>
Sample not available.
BrowseLockInitResponse
BrowseLockInitResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Header | ResponseHeader |
None. |
|
| Body | BrowseLockInitResponseBody |
None. |
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
Message |
string |
None. |
| StatusCode |
Status code |
ResponseStatus |
None. |
| Status |
Status |
string |
None. |
| ErrorId |
Error id |
string |
None. |
| Name | Description | Type | Additional information |
|---|---|---|---|
| Locks |
List of locks |
Collection of LockInitViewModel |
None. |
| TotalCount |
Total records count. |
integer |
None. |
| PageSize |
Page size. |
integer |
None. |
| Page |
Page |
integer |
None. |
| PageCount |
Number of pages. |
integer |
None. |
{
"Header": {
"Message": "sample string 1",
"StatusCode": 0,
"Status": "sample string 2",
"ErrorId": "sample string 3"
},
"Body": {
"Locks": [
{
"LockEntity": 1,
"LockID": "sample string 2",
"OwnerEntity": 3,
"ContactName": "sample string 4",
"PhoneNo": "sample string 5"
},
{
"LockEntity": 1,
"LockID": "sample string 2",
"OwnerEntity": 3,
"ContactName": "sample string 4",
"PhoneNo": "sample string 5"
}
],
"TotalCount": 1,
"PageSize": 2,
"Page": 3,
"PageCount": 4
}
}
<BrowseLockInitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses.Lock">
<Body xmlns:d2p1="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses.Lock" xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses">
<Page>3</Page>
<PageCount>4</PageCount>
<PageSize>2</PageSize>
<TotalCount>1</TotalCount>
<d2p1:Locks xmlns:d3p1="http://schemas.datacontract.org/2004/07/SaG.API.Models">
<d3p1:LockInitViewModel>
<d3p1:ContactName>sample string 4</d3p1:ContactName>
<d3p1:LockEntity>1</d3p1:LockEntity>
<d3p1:LockID>sample string 2</d3p1:LockID>
<d3p1:OwnerEntity>3</d3p1:OwnerEntity>
<d3p1:PhoneNo>sample string 5</d3p1:PhoneNo>
</d3p1:LockInitViewModel>
<d3p1:LockInitViewModel>
<d3p1:ContactName>sample string 4</d3p1:ContactName>
<d3p1:LockEntity>1</d3p1:LockEntity>
<d3p1:LockID>sample string 2</d3p1:LockID>
<d3p1:OwnerEntity>3</d3p1:OwnerEntity>
<d3p1:PhoneNo>sample string 5</d3p1:PhoneNo>
</d3p1:LockInitViewModel>
</d2p1:Locks>
</Body>
<Header xmlns="http://schemas.datacontract.org/2004/07/SaG.API.Models.Responses">
<ErrorId>sample string 3</ErrorId>
<Message>sample string 1</Message>
<Status>sample string 2</Status>
<StatusCode>Ok</StatusCode>
</Header>
</BrowseLockInitResponse>