예제 #1
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("redirectType");
     writer.WriteStringValue(RedirectType.ToString());
     if (Optional.IsDefined(DestinationProtocol))
     {
         writer.WritePropertyName("destinationProtocol");
         writer.WriteStringValue(DestinationProtocol.Value.ToString());
     }
     if (Optional.IsDefined(CustomPath))
     {
         writer.WritePropertyName("customPath");
         writer.WriteStringValue(CustomPath);
     }
     if (Optional.IsDefined(CustomHostname))
     {
         writer.WritePropertyName("customHostname");
         writer.WriteStringValue(CustomHostname);
     }
     if (Optional.IsDefined(CustomQueryString))
     {
         writer.WritePropertyName("customQueryString");
         writer.WriteStringValue(CustomQueryString);
     }
     if (Optional.IsDefined(CustomFragment))
     {
         writer.WritePropertyName("customFragment");
         writer.WriteStringValue(CustomFragment);
     }
     writer.WriteEndObject();
 }
        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
        {
            writer.WriteStartObject();
            if (Optional.IsCollectionDefined(AllOf))
            {
                writer.WritePropertyName("allOf");
                writer.WriteStartArray();
                foreach (var item in AllOf)
                {
                    writer.WriteObjectValue(item);
                }
                writer.WriteEndArray();
            }
            writer.WritePropertyName("odata.type");
            writer.WriteStringValue(OdataType.ToString());
            foreach (var item in AdditionalProperties)
            {
                writer.WritePropertyName(item.Key);
#if NET6_0_OR_GREATER
                writer.WriteRawValue(item.Value);
#else
                JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement);
#endif
            }
            writer.WriteEndObject();
        }
예제 #3
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("operator");
     writer.WriteStringValue(Operator.ToString());
     if (Optional.IsDefined(NegateCondition))
     {
         writer.WritePropertyName("negateCondition");
         writer.WriteBooleanValue(NegateCondition.Value);
     }
     if (Optional.IsCollectionDefined(MatchValues))
     {
         writer.WritePropertyName("matchValues");
         writer.WriteStartArray();
         foreach (var item in MatchValues)
         {
             writer.WriteStringValue(item);
         }
         writer.WriteEndArray();
     }
     if (Optional.IsCollectionDefined(Transforms))
     {
         writer.WritePropertyName("transforms");
         writer.WriteStartArray();
         foreach (var item in Transforms)
         {
             writer.WriteStringValue(item.ToString());
         }
         writer.WriteEndArray();
     }
     writer.WriteEndObject();
 }
예제 #4
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("originGroup");
     JsonSerializer.Serialize(writer, OriginGroup); writer.WriteEndObject();
 }
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("certificateType");
     writer.WriteStringValue(CertificateType.ToString());
     writer.WriteEndObject();
 }
예제 #6
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("odata.type");
     writer.WriteStringValue(OdataType.ToString());
     foreach (var item in AdditionalProperties)
     {
         writer.WritePropertyName(item.Key);
         writer.WriteObjectValue(item.Value);
     }
     writer.WriteEndObject();
 }
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("headerAction");
     writer.WriteStringValue(HeaderAction.ToString());
     writer.WritePropertyName("headerName");
     writer.WriteStringValue(HeaderName);
     if (Optional.IsDefined(Value))
     {
         writer.WritePropertyName("value");
         writer.WriteStringValue(Value);
     }
     writer.WriteEndObject();
 }
예제 #8
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("sourcePattern");
     writer.WriteStringValue(SourcePattern);
     writer.WritePropertyName("destination");
     writer.WriteStringValue(Destination);
     if (Optional.IsDefined(PreserveUnmatchedPath))
     {
         writer.WritePropertyName("preserveUnmatchedPath");
         writer.WriteBooleanValue(PreserveUnmatchedPath.Value);
     }
     writer.WriteEndObject();
 }
예제 #9
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("subscriptionId");
     writer.WriteStringValue(SubscriptionId);
     writer.WritePropertyName("resourceGroupName");
     writer.WriteStringValue(ResourceGroupName);
     writer.WritePropertyName("vaultName");
     writer.WriteStringValue(VaultName);
     writer.WritePropertyName("secretName");
     writer.WriteStringValue(SecretName);
     writer.WritePropertyName("secretVersion");
     writer.WriteStringValue(SecretVersion);
     writer.WriteEndObject();
 }
예제 #10
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (OdataType != null)
         {
             hashCode = hashCode * 59 + OdataType.GetHashCode();
         }
         if (CatGtmentryid != null)
         {
             hashCode = hashCode * 59 + CatGtmentryid.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #11
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("webTestId");
     writer.WriteStringValue(WebTestId);
     writer.WritePropertyName("componentId");
     writer.WriteStringValue(ComponentId);
     writer.WritePropertyName("failedLocationCount");
     writer.WriteNumberValue(FailedLocationCount);
     writer.WritePropertyName("odata.type");
     writer.WriteStringValue(OdataType.ToString());
     foreach (var item in AdditionalProperties)
     {
         writer.WritePropertyName(item.Key);
         writer.WriteObjectValue(item.Value);
     }
     writer.WriteEndObject();
 }
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("queryStringBehavior");
     writer.WriteStringValue(QueryStringBehavior.ToString());
     if (Optional.IsDefined(QueryParameters))
     {
         if (QueryParameters != null)
         {
             writer.WritePropertyName("queryParameters");
             writer.WriteStringValue(QueryParameters);
         }
         else
         {
             writer.WriteNull("queryParameters");
         }
     }
     writer.WriteEndObject();
 }
예제 #13
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     if (Optional.IsCollectionDefined(AllOf))
     {
         writer.WritePropertyName("allOf");
         writer.WriteStartArray();
         foreach (var item in AllOf)
         {
             writer.WriteObjectValue(item);
         }
         writer.WriteEndArray();
     }
     writer.WritePropertyName("odata.type");
     writer.WriteStringValue(OdataType.ToString());
     foreach (var item in AdditionalProperties)
     {
         writer.WritePropertyName(item.Key);
         writer.WriteObjectValue(item.Value);
     }
     writer.WriteEndObject();
 }
        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
        {
            writer.WriteStartObject();
            writer.WritePropertyName("webTestId");
            writer.WriteStringValue(WebTestId);
            writer.WritePropertyName("componentId");
            writer.WriteStringValue(ComponentId);
            writer.WritePropertyName("failedLocationCount");
            writer.WriteNumberValue(FailedLocationCount);
            writer.WritePropertyName("odata.type");
            writer.WriteStringValue(OdataType.ToString());
            foreach (var item in AdditionalProperties)
            {
                writer.WritePropertyName(item.Key);
#if NET6_0_OR_GREATER
                writer.WriteRawValue(item.Value);
#else
                JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement);
#endif
            }
            writer.WriteEndObject();
        }
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     if (Optional.IsDefined(Algorithm))
     {
         writer.WritePropertyName("algorithm");
         writer.WriteStringValue(Algorithm.Value.ToString());
     }
     if (Optional.IsCollectionDefined(ParameterNameOverride))
     {
         writer.WritePropertyName("parameterNameOverride");
         writer.WriteStartArray();
         foreach (var item in ParameterNameOverride)
         {
             writer.WriteObjectValue(item);
         }
         writer.WriteEndArray();
     }
     writer.WriteEndObject();
 }
        /// <summary>
        /// Returns true if Apidatav90systemusersuserIDMicrosoftDynamicsCRMRemoveUserFromRecordTeamTeamTemplate instances are equal
        /// </summary>
        /// <param name="other">Instance of Apidatav90systemusersuserIDMicrosoftDynamicsCRMRemoveUserFromRecordTeamTeamTemplate to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Apidatav90systemusersuserIDMicrosoftDynamicsCRMRemoveUserFromRecordTeamTeamTemplate other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OdataType == other.OdataType ||
                     OdataType != null &&
                     OdataType.Equals(other.OdataType)
                     ) &&
                 (
                     Teamtemplateid == other.Teamtemplateid ||
                     Teamtemplateid != null &&
                     Teamtemplateid.Equals(other.Teamtemplateid)
                 ));
        }
예제 #17
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("@odata.type");
     writer.WriteStringValue(OdataType.ToString());
     writer.WritePropertyName("cacheBehavior");
     writer.WriteStringValue(CacheBehavior.ToString());
     writer.WritePropertyName("cacheType");
     writer.WriteStringValue(CacheType.ToString());
     if (Optional.IsDefined(CacheDuration))
     {
         if (CacheDuration != null)
         {
             writer.WritePropertyName("cacheDuration");
             writer.WriteStringValue(CacheDuration);
         }
         else
         {
             writer.WriteNull("cacheDuration");
         }
     }
     writer.WriteEndObject();
 }
예제 #18
0
        /// <summary>
        /// Returns true if Apidatav90systemusersuseridMicrosoftDynamicsCRMAddUserToRecordTeamRecord instances are equal
        /// </summary>
        /// <param name="other">Instance of Apidatav90systemusersuseridMicrosoftDynamicsCRMAddUserToRecordTeamRecord to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Apidatav90systemusersuseridMicrosoftDynamicsCRMAddUserToRecordTeamRecord other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OdataType == other.OdataType ||
                     OdataType != null &&
                     OdataType.Equals(other.OdataType)
                     ) &&
                 (
                     CatGtmentryid == other.CatGtmentryid ||
                     CatGtmentryid != null &&
                     CatGtmentryid.Equals(other.CatGtmentryid)
                 ));
        }
예제 #19
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (OdataContext != null)
         {
             hashCode = hashCode * 59 + OdataContext.GetHashCode();
         }
         if (OdataType != null)
         {
             hashCode = hashCode * 59 + OdataType.GetHashCode();
         }
         if (ParentOptionSetName != null)
         {
             hashCode = hashCode * 59 + ParentOptionSetName.GetHashCode();
         }
         if (IsCustomOptionSet != null)
         {
             hashCode = hashCode * 59 + IsCustomOptionSet.GetHashCode();
         }
         if (IsGlobal != null)
         {
             hashCode = hashCode * 59 + IsGlobal.GetHashCode();
         }
         if (IsManaged != null)
         {
             hashCode = hashCode * 59 + IsManaged.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (ExternalTypeName != null)
         {
             hashCode = hashCode * 59 + ExternalTypeName.GetHashCode();
         }
         if (OptionSetType != null)
         {
             hashCode = hashCode * 59 + OptionSetType.GetHashCode();
         }
         if (IntroducedVersion != null)
         {
             hashCode = hashCode * 59 + IntroducedVersion.GetHashCode();
         }
         if (MetadataId != null)
         {
             hashCode = hashCode * 59 + MetadataId.GetHashCode();
         }
         if (HasChanged != null)
         {
             hashCode = hashCode * 59 + HasChanged.GetHashCode();
         }
         if (Options != null)
         {
             hashCode = hashCode * 59 + Options.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (DisplayName != null)
         {
             hashCode = hashCode * 59 + DisplayName.GetHashCode();
         }
         if (IsCustomizable != null)
         {
             hashCode = hashCode * 59 + IsCustomizable.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #20
0
        /// <summary>
        /// Returns true if InlineResponseDefault7 instances are equal
        /// </summary>
        /// <param name="other">Instance of InlineResponseDefault7 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InlineResponseDefault7 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OdataContext == other.OdataContext ||
                     OdataContext != null &&
                     OdataContext.Equals(other.OdataContext)
                     ) &&
                 (
                     OdataType == other.OdataType ||
                     OdataType != null &&
                     OdataType.Equals(other.OdataType)
                 ) &&
                 (
                     ParentOptionSetName == other.ParentOptionSetName ||
                     ParentOptionSetName != null &&
                     ParentOptionSetName.Equals(other.ParentOptionSetName)
                 ) &&
                 (
                     IsCustomOptionSet == other.IsCustomOptionSet ||
                     IsCustomOptionSet != null &&
                     IsCustomOptionSet.Equals(other.IsCustomOptionSet)
                 ) &&
                 (
                     IsGlobal == other.IsGlobal ||
                     IsGlobal != null &&
                     IsGlobal.Equals(other.IsGlobal)
                 ) &&
                 (
                     IsManaged == other.IsManaged ||
                     IsManaged != null &&
                     IsManaged.Equals(other.IsManaged)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     ExternalTypeName == other.ExternalTypeName ||
                     ExternalTypeName != null &&
                     ExternalTypeName.Equals(other.ExternalTypeName)
                 ) &&
                 (
                     OptionSetType == other.OptionSetType ||
                     OptionSetType != null &&
                     OptionSetType.Equals(other.OptionSetType)
                 ) &&
                 (
                     IntroducedVersion == other.IntroducedVersion ||
                     IntroducedVersion != null &&
                     IntroducedVersion.Equals(other.IntroducedVersion)
                 ) &&
                 (
                     MetadataId == other.MetadataId ||
                     MetadataId != null &&
                     MetadataId.Equals(other.MetadataId)
                 ) &&
                 (
                     HasChanged == other.HasChanged ||
                     HasChanged != null &&
                     HasChanged.Equals(other.HasChanged)
                 ) &&
                 (
                     Options == other.Options ||
                     Options != null &&
                     Options.SequenceEqual(other.Options)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     IsCustomizable == other.IsCustomizable ||
                     IsCustomizable != null &&
                     IsCustomizable.Equals(other.IsCustomizable)
                 ));
        }