|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable CS0618 |
| 3 | +using Microsoft.Kiota.Abstractions.Extensions; |
| 4 | +using Microsoft.Kiota.Abstractions.Serialization; |
| 5 | +using System.Collections.Generic; |
| 6 | +using System.IO; |
| 7 | +using System; |
| 8 | +namespace Microsoft.Graph.PowerShell.Applications.Client.Models |
| 9 | +{ |
| 10 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 11 | + #pragma warning disable CS1591 |
| 12 | + public partial class Note : global::Microsoft.Graph.PowerShell.Applications.Client.Models.OutlookItem, IParsable |
| 13 | + #pragma warning restore CS1591 |
| 14 | + { |
| 15 | + /// <summary>The file attachments for the note. Only inline image attachments (image/png, image/jpeg, image/gif, or image/bmp) are supported, with a maximum size of 3 MB per attachment. Use $expand to retrieve attachments.</summary> |
| 16 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 17 | +#nullable enable |
| 18 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Attachment>? Attachments { get; set; } |
| 19 | +#nullable restore |
| 20 | +#else |
| 21 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Attachment> Attachments { get; set; } |
| 22 | +#endif |
| 23 | + /// <summary>The content of the note. Supports text or html content types.</summary> |
| 24 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 25 | +#nullable enable |
| 26 | + public global::Microsoft.Graph.PowerShell.Applications.Client.Models.ItemBody? Body { get; set; } |
| 27 | +#nullable restore |
| 28 | +#else |
| 29 | + public global::Microsoft.Graph.PowerShell.Applications.Client.Models.ItemBody Body { get; set; } |
| 30 | +#endif |
| 31 | + /// <summary>Auto-generated preview of the note body content (first ~255 characters, plain text). Read-only.</summary> |
| 32 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 33 | +#nullable enable |
| 34 | + public string? BodyPreview { get; private set; } |
| 35 | +#nullable restore |
| 36 | +#else |
| 37 | + public string BodyPreview { get; private set; } |
| 38 | +#endif |
| 39 | + /// <summary>The collection of open extensions defined for the note.</summary> |
| 40 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 41 | +#nullable enable |
| 42 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Extension>? Extensions { get; set; } |
| 43 | +#nullable restore |
| 44 | +#else |
| 45 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Extension> Extensions { get; set; } |
| 46 | +#endif |
| 47 | + /// <summary>Indicates whether the note has file attachments. Supports $filter (eq). Read-only.</summary> |
| 48 | + public bool? HasAttachments { get; private set; } |
| 49 | + /// <summary>Indicates whether the note is soft-deleted. Read-only.</summary> |
| 50 | + public bool? IsDeleted { get; private set; } |
| 51 | + /// <summary>The collection of multi-value extended properties defined for the note.</summary> |
| 52 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 53 | +#nullable enable |
| 54 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.MultiValueLegacyExtendedProperty>? MultiValueExtendedProperties { get; set; } |
| 55 | +#nullable restore |
| 56 | +#else |
| 57 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.MultiValueLegacyExtendedProperty> MultiValueExtendedProperties { get; set; } |
| 58 | +#endif |
| 59 | + /// <summary>The collection of single-value extended properties defined for the note.</summary> |
| 60 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 61 | +#nullable enable |
| 62 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.SingleValueLegacyExtendedProperty>? SingleValueExtendedProperties { get; set; } |
| 63 | +#nullable restore |
| 64 | +#else |
| 65 | + public List<global::Microsoft.Graph.PowerShell.Applications.Client.Models.SingleValueLegacyExtendedProperty> SingleValueExtendedProperties { get; set; } |
| 66 | +#endif |
| 67 | + /// <summary>The title of the note. Supports $filter (eq, ne, startsWith) and $orderby.</summary> |
| 68 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 69 | +#nullable enable |
| 70 | + public string? Subject { get; set; } |
| 71 | +#nullable restore |
| 72 | +#else |
| 73 | + public string Subject { get; set; } |
| 74 | +#endif |
| 75 | + /// <summary> |
| 76 | + /// Instantiates a new <see cref="global::Microsoft.Graph.PowerShell.Applications.Client.Models.Note"/> and sets the default values. |
| 77 | + /// </summary> |
| 78 | + public Note() : base() |
| 79 | + { |
| 80 | + OdataType = "#microsoft.graph.note"; |
| 81 | + } |
| 82 | + /// <summary> |
| 83 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 84 | + /// </summary> |
| 85 | + /// <returns>A <see cref="global::Microsoft.Graph.PowerShell.Applications.Client.Models.Note"/></returns> |
| 86 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 87 | + public static new global::Microsoft.Graph.PowerShell.Applications.Client.Models.Note CreateFromDiscriminatorValue(IParseNode parseNode) |
| 88 | + { |
| 89 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 90 | + return new global::Microsoft.Graph.PowerShell.Applications.Client.Models.Note(); |
| 91 | + } |
| 92 | + /// <summary> |
| 93 | + /// The deserialization information for the current model |
| 94 | + /// </summary> |
| 95 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 96 | + public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 97 | + { |
| 98 | + return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers()) |
| 99 | + { |
| 100 | + { "attachments", n => { Attachments = n.GetCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Attachment>(global::Microsoft.Graph.PowerShell.Applications.Client.Models.Attachment.CreateFromDiscriminatorValue)?.AsList(); } }, |
| 101 | + { "body", n => { Body = n.GetObjectValue<global::Microsoft.Graph.PowerShell.Applications.Client.Models.ItemBody>(global::Microsoft.Graph.PowerShell.Applications.Client.Models.ItemBody.CreateFromDiscriminatorValue); } }, |
| 102 | + { "bodyPreview", n => { BodyPreview = n.GetStringValue(); } }, |
| 103 | + { "extensions", n => { Extensions = n.GetCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Extension>(global::Microsoft.Graph.PowerShell.Applications.Client.Models.Extension.CreateFromDiscriminatorValue)?.AsList(); } }, |
| 104 | + { "hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, |
| 105 | + { "isDeleted", n => { IsDeleted = n.GetBoolValue(); } }, |
| 106 | + { "multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.MultiValueLegacyExtendedProperty>(global::Microsoft.Graph.PowerShell.Applications.Client.Models.MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.AsList(); } }, |
| 107 | + { "singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.SingleValueLegacyExtendedProperty>(global::Microsoft.Graph.PowerShell.Applications.Client.Models.SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.AsList(); } }, |
| 108 | + { "subject", n => { Subject = n.GetStringValue(); } }, |
| 109 | + }; |
| 110 | + } |
| 111 | + /// <summary> |
| 112 | + /// Serializes information the current object |
| 113 | + /// </summary> |
| 114 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 115 | + public override void Serialize(ISerializationWriter writer) |
| 116 | + { |
| 117 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 118 | + base.Serialize(writer); |
| 119 | + writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Attachment>("attachments", Attachments); |
| 120 | + writer.WriteObjectValue<global::Microsoft.Graph.PowerShell.Applications.Client.Models.ItemBody>("body", Body); |
| 121 | + writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.Extension>("extensions", Extensions); |
| 122 | + writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.MultiValueLegacyExtendedProperty>("multiValueExtendedProperties", MultiValueExtendedProperties); |
| 123 | + writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Applications.Client.Models.SingleValueLegacyExtendedProperty>("singleValueExtendedProperties", SingleValueExtendedProperties); |
| 124 | + writer.WriteStringValue("subject", Subject); |
| 125 | + } |
| 126 | + } |
| 127 | +} |
| 128 | +#pragma warning restore CS0618 |
0 commit comments