コード例 #1
0
 public void AddCommunityActionTemplate(ApiCommunityActionTemplateResponseModel item)
 {
     if (!this.CommunityActionTemplates.Any(x => x.Id == item.Id))
     {
         this.CommunityActionTemplates.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiCommunityActionTemplateRequestModel MapResponseToRequest(
            ApiCommunityActionTemplateResponseModel response)
        {
            var request = new ApiCommunityActionTemplateRequestModel();

            request.SetProperties(
                response.ExternalId,
                response.JSON,
                response.Name);
            return(request);
        }
コード例 #3
0
        public virtual ApiCommunityActionTemplateResponseModel MapRequestToResponse(
            string id,
            ApiCommunityActionTemplateRequestModel request)
        {
            var response = new ApiCommunityActionTemplateResponseModel();

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