コード例 #1
0
 public void AddTimestampCheck(ApiTimestampCheckClientResponseModel item)
 {
     if (!this.TimestampChecks.Any(x => x.Id == item.Id))
     {
         this.TimestampChecks.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiTimestampCheckClientRequestModel MapClientResponseToRequest(
            ApiTimestampCheckClientResponseModel response)
        {
            var request = new ApiTimestampCheckClientRequestModel();

            request.SetProperties(
                response.Name,
                response.Timestamp);
            return(request);
        }
コード例 #3
0
        public virtual ApiTimestampCheckClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTimestampCheckClientRequestModel request)
        {
            var response = new ApiTimestampCheckClientResponseModel();

            response.SetProperties(id,
                                   request.Name,
                                   request.Timestamp);
            return(response);
        }