Beispiel #1
0
        public WrikeDependency(string predecessorId, string successorId, WrikeDependencyRelationType relationType)
        {
            successorId.ValidateParameter(nameof(successorId));
            predecessorId.ValidateParameter(nameof(predecessorId));

            PredecessorId = predecessorId;
            SuccessorId   = successorId;
            RelationType  = relationType;
        }
Beispiel #2
0
        async Task <WrikeDependency> IWrikeDependenciesClient.UpdateAsync(WrikeClientIdParameter id, WrikeDependencyRelationType relationType)
        {
            var contentBuilder = new WrikeFormUrlEncodedContentBuilder()
                                 .AddParameter("relationType", relationType);

            var response = await SendRequest <WrikeDependency>($"dependencies/{id}", HttpMethods.Put, contentBuilder.GetContent()).ConfigureAwait(false);

            return(GetReponseDataFirstItem(response));
        }