Пример #1
0
 public void AddTimestampCheck(ApiTimestampCheckResponseModel item)
 {
     if (!this.TimestampChecks.Any(x => x.Id == item.Id))
     {
         this.TimestampChecks.Add(item);
     }
 }
Пример #2
0
        public virtual ApiTimestampCheckRequestModel MapResponseToRequest(
            ApiTimestampCheckResponseModel response)
        {
            var request = new ApiTimestampCheckRequestModel();

            request.SetProperties(
                response.Name,
                response.Timestamp);
            return(request);
        }
Пример #3
0
        public virtual ApiTimestampCheckResponseModel MapRequestToResponse(
            int id,
            ApiTimestampCheckRequestModel request)
        {
            var response = new ApiTimestampCheckResponseModel();

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