private T Succes <T>(API.SessionRequest request) where T : API.SessionResponse, new() { var response = new T() { RequestId = request.RequestId, SessionId = request.SessionId, Status = (int)HttpStatusCode.OK }; return(response); }
private T Fail <T>(API.SessionRequest request, HttpStatusCode code, string errorMessage) where T : API.SessionResponse, new() { var response = new T() { RequestId = request.RequestId, SessionId = request.SessionId, Status = (int)code, StatusDescription = errorMessage }; return(response); }
public void CopySessionInfo(SessionRequest request) { this.RequestId = request.RequestId; this.SessionId = request.SessionId; }