POST api/employee/currentStatus
Get employee's status(e.g online, offline)
Request Information
URI Parameters
None.
Body Parameters
GetCurrentStatusBinderName | Description | Type | Additional information |
---|---|---|---|
PersonIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "PersonIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<GetCurrentStatusBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <PersonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </PersonIds> </GetCurrentStatusBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get employee's status(e.g online, offline)
API_Data_ListOfEmployeeWorkStatusWithPersonIdName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of EmployeeWorkStatusWithPersonId |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "PersonId": 1, "ClockOn": { "When": "2024-12-21 14:59:15", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "ClockOff": { "When": "2024-12-21 14:59:15", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "CurrentTime": "2024-12-21 14:59:15", "CurrentStatus": 4 }, { "PersonId": 1, "ClockOn": { "When": "2024-12-21 14:59:15", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "ClockOff": { "When": "2024-12-21 14:59:15", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "CurrentTime": "2024-12-21 14:59:15", "CurrentStatus": 4 } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfEmployeeWorkStatusWithPersonId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d2p1:EmployeeWorkStatusWithPersonId> <d2p1:ClockOff xmlns:d4p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d4p1:IsModified>true</d4p1:IsModified> <d4p1:LastModifiedBy>3</d4p1:LastModifiedBy> <d4p1:When>2024-12-21T18:59:15.4303354-08:00</d4p1:When> </d2p1:ClockOff> <d2p1:ClockOn xmlns:d4p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d4p1:IsModified>true</d4p1:IsModified> <d4p1:LastModifiedBy>3</d4p1:LastModifiedBy> <d4p1:When>2024-12-21T18:59:15.4303354-08:00</d4p1:When> </d2p1:ClockOn> <d2p1:CurrentStatus>4</d2p1:CurrentStatus> <d2p1:CurrentTime>2024-12-21T18:59:15.4303354-08:00</d2p1:CurrentTime> <d2p1:IfOnline>3</d2p1:IfOnline> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:EmployeeWorkStatusWithPersonId> <d2p1:EmployeeWorkStatusWithPersonId> <d2p1:ClockOff xmlns:d4p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d4p1:IsModified>true</d4p1:IsModified> <d4p1:LastModifiedBy>3</d4p1:LastModifiedBy> <d4p1:When>2024-12-21T18:59:15.4303354-08:00</d4p1:When> </d2p1:ClockOff> <d2p1:ClockOn xmlns:d4p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d4p1:IsModified>true</d4p1:IsModified> <d4p1:LastModifiedBy>3</d4p1:LastModifiedBy> <d4p1:When>2024-12-21T18:59:15.4303354-08:00</d4p1:When> </d2p1:ClockOn> <d2p1:CurrentStatus>4</d2p1:CurrentStatus> <d2p1:CurrentTime>2024-12-21T18:59:15.4303354-08:00</d2p1:CurrentTime> <d2p1:IfOnline>3</d2p1:IfOnline> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:EmployeeWorkStatusWithPersonId> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfEmployeeWorkStatusWithPersonId>