POST api/PowerOutage/GetListPowerOutage
Request Information
URI Parameters
None.
Body Parameters
RequestProvCodeAndAmpCodeName | Description | Type | Additional information |
---|---|---|---|
ProvCode | string |
None. |
|
AmpCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProvCode": "sample string 1", "AmpCode": "sample string 2" }
application/xml, text/xml
Sample:
<PlaceModels.RequestProvCodeAndAmpCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models.PlaceModels"> <AmpCode>sample string 2</AmpCode> <ProvCode>sample string 1</ProvCode> </PlaceModels.RequestProvCodeAndAmpCode>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfResponsePowerOutageName | Description | Type | Additional information |
---|---|---|---|
Data | ResponsePowerOutage |
None. |
|
Status | boolean |
None. |
|
ErrorMessage | string |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "Id": "sample string 1", "Address": "sample string 2", "Detail": "sample string 3", "OutageStartdate": "sample string 4", "OutageEnddate": "sample string 5", "CreatedDate": "sample string 6", "MobilePhone": "sample string 7", "OfficeName": "sample string 8", "CreatedByStaffName": "sample string 9", "Lat": "sample string 10", "Long": "sample string 11", "Province": "sample string 12", "RefId": "sample string 13" }, "Status": true, "ErrorMessage": "sample string 2", "Message": "sample string 3" }
application/xml, text/xml
Sample:
<ResultModelOfResponsePowerOutagep_SF8EHFt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models.PowerOutageModels"> <d2p1:Address>sample string 2</d2p1:Address> <d2p1:CreatedByStaffName>sample string 9</d2p1:CreatedByStaffName> <d2p1:CreatedDate>sample string 6</d2p1:CreatedDate> <d2p1:Detail>sample string 3</d2p1:Detail> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Lat>sample string 10</d2p1:Lat> <d2p1:Long>sample string 11</d2p1:Long> <d2p1:MobilePhone>sample string 7</d2p1:MobilePhone> <d2p1:OfficeName>sample string 8</d2p1:OfficeName> <d2p1:OutageEnddate>sample string 5</d2p1:OutageEnddate> <d2p1:OutageStartdate>sample string 4</d2p1:OutageStartdate> <d2p1:Province>sample string 12</d2p1:Province> <d2p1:RefId>sample string 13</d2p1:RefId> </Data> <ErrorMessage>sample string 2</ErrorMessage> <Message>sample string 3</Message> <Status>true</Status> </ResultModelOfResponsePowerOutagep_SF8EHFt>