public async Task WhenAsync(MergePatchAttributeSetInstanceExtensionFieldMvoDto c) { var idObj = AttributeSetInstanceExtensionFieldMvoProxyUtils.ToIdString((c as IMergePatchAttributeSetInstanceExtensionFieldMvo).AttributeSetInstanceExtensionFieldId); var uriParameters = new AttributeSetInstanceExtensionFieldMvoUriParameters(); uriParameters.Id = idObj; var req = new AttributeSetInstanceExtensionFieldMvoPatchRequest(uriParameters, (MergePatchAttributeSetInstanceExtensionFieldMvoDto)c); var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvo.Patch(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); }
public async virtual Task <long> GetCountAsync(ICriterion filter) { var q = new AttributeSetInstanceExtensionFieldMvosCountGetQuery(); q.Filter = AttributeSetInstanceExtensionFieldMvoProxyUtils.GetFilterQueryValueString(filter); var req = new AttributeSetInstanceExtensionFieldMvosCountGetRequest(); req.Query = q; var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvosCount.Get(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); return(long.Parse(await resp.RawContent.ReadAsStringAsync())); }
public async Task <IAttributeSetInstanceExtensionFieldMvoState> GetHistoryStateAsync(AttributeSetInstanceExtensionFieldId attributeSetInstanceExtensionFieldId, long version) { var idObj = AttributeSetInstanceExtensionFieldMvoProxyUtils.ToIdString(attributeSetInstanceExtensionFieldId); var uriParameters = new AttributeSetInstanceExtensionFieldMvoHistoryStateUriParameters(); uriParameters.Id = idObj; uriParameters.Version = version.ToString(); var req = new AttributeSetInstanceExtensionFieldMvoHistoryStateGetRequest(uriParameters); var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvoHistoryState.Get(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); return((resp.Content == null) ? null : resp.Content.ToAttributeSetInstanceExtensionFieldMvoState()); }
public async Task <IAttributeSetInstanceExtensionFieldMvoState> GetAsync(AttributeSetInstanceExtensionFieldId attributeSetInstanceExtensionFieldId) { IAttributeSetInstanceExtensionFieldMvoState state = null; var idObj = AttributeSetInstanceExtensionFieldMvoProxyUtils.ToIdString(attributeSetInstanceExtensionFieldId); var uriParameters = new AttributeSetInstanceExtensionFieldMvoUriParameters(); uriParameters.Id = idObj; var req = new AttributeSetInstanceExtensionFieldMvoGetRequest(uriParameters); var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvo.Get(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); state = (resp.Content == null) ? null : resp.Content.ToAttributeSetInstanceExtensionFieldMvoState(); return(state); }
public async Task <IEnumerable <IAttributeSetInstanceExtensionFieldMvoState> > GetAsync(ICriterion filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue, IList <string> fields = null) { IEnumerable <IAttributeSetInstanceExtensionFieldMvoState> states = null; var q = new AttributeSetInstanceExtensionFieldMvosGetQuery(); q.FirstResult = firstResult; q.MaxResults = maxResults; q.Sort = AttributeSetInstanceExtensionFieldMvoProxyUtils.GetOrdersQueryValueString(orders); q.Fields = AttributeSetInstanceExtensionFieldMvoProxyUtils.GetReturnedFieldsQueryValueString(fields, QueryFieldValueSeparator); q.Filter = AttributeSetInstanceExtensionFieldMvoProxyUtils.GetFilterQueryValueString(filter); var req = new AttributeSetInstanceExtensionFieldMvosGetRequest(); req.Query = q; var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvos.Get(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); states = (resp.Content == null) ? null : resp.Content.Select(e => e.ToAttributeSetInstanceExtensionFieldMvoState()); return(states); }
public async Task WhenAsync(DeleteAttributeSetInstanceExtensionFieldMvoDto c) { var idObj = AttributeSetInstanceExtensionFieldMvoProxyUtils.ToIdString((c as IDeleteAttributeSetInstanceExtensionFieldMvo).AttributeSetInstanceExtensionFieldId); var uriParameters = new AttributeSetInstanceExtensionFieldMvoUriParameters(); uriParameters.Id = idObj; var q = new AttributeSetInstanceExtensionFieldMvoDeleteQuery(); q.CommandId = c.CommandId; q.RequesterId = c.RequesterId; q.Version = Convert.ToString(c.AttrSetInstEFGroupVersion); var req = new AttributeSetInstanceExtensionFieldMvoDeleteRequest(uriParameters); req.Query = q; var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvo.Delete(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); }
public async virtual Task <long> GetCountAsync(ICriterion filter) { var q = new AttributeSetInstanceExtensionFieldMvosCountGetQuery(); q.Filter = AttributeSetInstanceExtensionFieldMvoProxyUtils.GetFilterQueryValueString(filter); var req = new AttributeSetInstanceExtensionFieldMvosCountGetRequest(); req.Query = q; var resp = await _ramlClient.AttributeSetInstanceExtensionFieldMvosCount.Get(req); AttributeSetInstanceExtensionFieldMvoProxyUtils.ThrowOnHttpResponseError(resp); string str = await resp.RawContent.ReadAsStringAsync(); if (str.StartsWith("\"")) { str = str.Substring(1); } if (str.EndsWith("\"")) { str = str.Substring(0, str.Length - 1); } return(long.Parse(str)); }