- generate update for mail samples bugfix primitive types
This commit is contained in:
Родитель
c820569ecd
Коммит
6362e99b5e
|
@ -5,10 +5,10 @@ using System.Linq;
|
|||
namespace Graphdotnetv4.Users {
|
||||
public class Attachment : Entity, IParsable<Attachment> {
|
||||
public string ContentType { get; set; }
|
||||
public bool IsInline { get; set; }
|
||||
public bool? IsInline { get; set; }
|
||||
public string LastModifiedDateTime { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int Size { get; set; }
|
||||
public int? Size { get; set; }
|
||||
public new IDictionary<string, Action<Attachment, IParseNode>> DeserializeFields => new Dictionary<string, Action<Attachment, IParseNode>> {
|
||||
{
|
||||
"contentType", (o,n) => { o.ContentType = n.GetStringValue(); }
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
using Kiota.Abstractions.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users {
|
||||
public class BodyType : IParsable<BodyType> {
|
||||
public IDictionary<string, Action<BodyType, IParseNode>> DeserializeFields => new Dictionary<string, Action<BodyType, IParseNode>> {
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
}
|
||||
public enum BodyType {
|
||||
Text,
|
||||
Html,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Graphdotnetv4.Users {
|
|||
public class FollowupFlag : IParsable<FollowupFlag> {
|
||||
public DateTimeTimeZone CompletedDateTime { get; set; }
|
||||
public DateTimeTimeZone DueDateTime { get; set; }
|
||||
public FollowupFlagStatus FlagStatus { get; set; }
|
||||
public FollowupFlagStatus? FlagStatus { get; set; }
|
||||
public DateTimeTimeZone StartDateTime { get; set; }
|
||||
public IDictionary<string, Action<FollowupFlag, IParseNode>> DeserializeFields => new Dictionary<string, Action<FollowupFlag, IParseNode>> {
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ namespace Graphdotnetv4.Users {
|
|||
"dueDateTime", (o,n) => { o.DueDateTime = n.GetObjectValue<DateTimeTimeZone>(); }
|
||||
},
|
||||
{
|
||||
"flagStatus", (o,n) => { o.FlagStatus = n.GetObjectValue<FollowupFlagStatus>(); }
|
||||
"flagStatus", (o,n) => { o.FlagStatus = n.GetEnumValue<FollowupFlagStatus>(); }
|
||||
},
|
||||
{
|
||||
"startDateTime", (o,n) => { o.StartDateTime = n.GetObjectValue<DateTimeTimeZone>(); }
|
||||
|
@ -25,7 +25,7 @@ namespace Graphdotnetv4.Users {
|
|||
public void Serialize(ISerializationWriter writer) {
|
||||
writer.WriteObjectValue<DateTimeTimeZone>("completedDateTime", CompletedDateTime);
|
||||
writer.WriteObjectValue<DateTimeTimeZone>("dueDateTime", DueDateTime);
|
||||
writer.WriteObjectValue<FollowupFlagStatus>("flagStatus", FlagStatus);
|
||||
writer.WriteEnumValue<FollowupFlagStatus>("flagStatus", FlagStatus);
|
||||
writer.WriteObjectValue<DateTimeTimeZone>("startDateTime", StartDateTime);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
using Kiota.Abstractions.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users {
|
||||
public class FollowupFlagStatus : IParsable<FollowupFlagStatus> {
|
||||
public IDictionary<string, Action<FollowupFlagStatus, IParseNode>> DeserializeFields => new Dictionary<string, Action<FollowupFlagStatus, IParseNode>> {
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
}
|
||||
public enum FollowupFlagStatus {
|
||||
NotFlagged,
|
||||
Complete,
|
||||
Flagged,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
using Kiota.Abstractions.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users {
|
||||
public class Importance : IParsable<Importance> {
|
||||
public IDictionary<string, Action<Importance, IParseNode>> DeserializeFields => new Dictionary<string, Action<Importance, IParseNode>> {
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
}
|
||||
public enum Importance {
|
||||
Low,
|
||||
Normal,
|
||||
High,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,11 +4,11 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users.InferenceClassification {
|
||||
public class InferenceClassificationOverride : Entity, IParsable<InferenceClassificationOverride> {
|
||||
public InferenceClassificationType ClassifyAs { get; set; }
|
||||
public InferenceClassificationType? ClassifyAs { get; set; }
|
||||
public EmailAddress SenderEmailAddress { get; set; }
|
||||
public new IDictionary<string, Action<InferenceClassificationOverride, IParseNode>> DeserializeFields => new Dictionary<string, Action<InferenceClassificationOverride, IParseNode>> {
|
||||
{
|
||||
"classifyAs", (o,n) => { o.ClassifyAs = n.GetObjectValue<InferenceClassificationType>(); }
|
||||
"classifyAs", (o,n) => { o.ClassifyAs = n.GetEnumValue<InferenceClassificationType>(); }
|
||||
},
|
||||
{
|
||||
"senderEmailAddress", (o,n) => { o.SenderEmailAddress = n.GetObjectValue<EmailAddress>(); }
|
||||
|
@ -16,7 +16,7 @@ namespace Graphdotnetv4.Users.InferenceClassification {
|
|||
};
|
||||
public new void Serialize(ISerializationWriter writer) {
|
||||
base.Serialize(writer);
|
||||
writer.WriteObjectValue<InferenceClassificationType>("classifyAs", ClassifyAs);
|
||||
writer.WriteEnumValue<InferenceClassificationType>("classifyAs", ClassifyAs);
|
||||
writer.WriteObjectValue<EmailAddress>("senderEmailAddress", SenderEmailAddress);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
using Kiota.Abstractions.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users {
|
||||
public class InferenceClassificationType : IParsable<InferenceClassificationType> {
|
||||
public IDictionary<string, Action<InferenceClassificationType, IParseNode>> DeserializeFields => new Dictionary<string, Action<InferenceClassificationType, IParseNode>> {
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
}
|
||||
public enum InferenceClassificationType {
|
||||
Focused,
|
||||
Other,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,18 +5,18 @@ using System.Linq;
|
|||
namespace Graphdotnetv4.Users {
|
||||
public class ItemBody : IParsable<ItemBody> {
|
||||
public string Content { get; set; }
|
||||
public BodyType ContentType { get; set; }
|
||||
public BodyType? ContentType { get; set; }
|
||||
public IDictionary<string, Action<ItemBody, IParseNode>> DeserializeFields => new Dictionary<string, Action<ItemBody, IParseNode>> {
|
||||
{
|
||||
"content", (o,n) => { o.Content = n.GetStringValue(); }
|
||||
},
|
||||
{
|
||||
"contentType", (o,n) => { o.ContentType = n.GetObjectValue<BodyType>(); }
|
||||
"contentType", (o,n) => { o.ContentType = n.GetEnumValue<BodyType>(); }
|
||||
},
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
writer.WriteStringValue("content", Content);
|
||||
writer.WriteObjectValue<BodyType>("contentType", ContentType);
|
||||
writer.WriteEnumValue<BodyType>("contentType", ContentType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -4,11 +4,11 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users.MailFolders {
|
||||
public class MailFolder : Entity, IParsable<MailFolder> {
|
||||
public int ChildFolderCount { get; set; }
|
||||
public int? ChildFolderCount { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string ParentFolderId { get; set; }
|
||||
public int TotalItemCount { get; set; }
|
||||
public int UnreadItemCount { get; set; }
|
||||
public int? TotalItemCount { get; set; }
|
||||
public int? UnreadItemCount { get; set; }
|
||||
public List<MailFolder> ChildFolders { get; set; }
|
||||
public List<MessageRule> MessageRules { get; set; }
|
||||
public List<Message> Messages { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
using Kiota.Abstractions.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users.MailFolders {
|
||||
public class MessageActionFlag : IParsable<MessageActionFlag> {
|
||||
public IDictionary<string, Action<MessageActionFlag, IParseNode>> DeserializeFields => new Dictionary<string, Action<MessageActionFlag, IParseNode>> {
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
}
|
||||
public enum MessageActionFlag {
|
||||
Any,
|
||||
Call,
|
||||
DoNotForward,
|
||||
FollowUp,
|
||||
Fyi,
|
||||
Forward,
|
||||
NoResponseNecessary,
|
||||
Read,
|
||||
Reply,
|
||||
ReplyToAll,
|
||||
Review,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,10 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
public MessageRulePredicates Conditions { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public MessageRulePredicates Exceptions { get; set; }
|
||||
public bool HasError { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
public bool IsReadOnly { get; set; }
|
||||
public int Sequence { get; set; }
|
||||
public bool? HasError { get; set; }
|
||||
public bool? IsEnabled { get; set; }
|
||||
public bool? IsReadOnly { get; set; }
|
||||
public int? Sequence { get; set; }
|
||||
public new IDictionary<string, Action<MessageRule, IParseNode>> DeserializeFields => new Dictionary<string, Action<MessageRule, IParseNode>> {
|
||||
{
|
||||
"actions", (o,n) => { o.Actions = n.GetObjectValue<MessageRuleActions>(); }
|
||||
|
|
|
@ -6,15 +6,15 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
public class MessageRuleActions : IParsable<MessageRuleActions> {
|
||||
public List<string> AssignCategories { get; set; }
|
||||
public string CopyToFolder { get; set; }
|
||||
public bool Delete { get; set; }
|
||||
public bool? Delete { get; set; }
|
||||
public List<Recipient> ForwardAsAttachmentTo { get; set; }
|
||||
public List<Recipient> ForwardTo { get; set; }
|
||||
public bool MarkAsRead { get; set; }
|
||||
public Importance MarkImportance { get; set; }
|
||||
public bool? MarkAsRead { get; set; }
|
||||
public Importance? MarkImportance { get; set; }
|
||||
public string MoveToFolder { get; set; }
|
||||
public bool PermanentDelete { get; set; }
|
||||
public bool? PermanentDelete { get; set; }
|
||||
public List<Recipient> RedirectTo { get; set; }
|
||||
public bool StopProcessingRules { get; set; }
|
||||
public bool? StopProcessingRules { get; set; }
|
||||
public IDictionary<string, Action<MessageRuleActions, IParseNode>> DeserializeFields => new Dictionary<string, Action<MessageRuleActions, IParseNode>> {
|
||||
{
|
||||
"assignCategories", (o,n) => { o.AssignCategories = n.GetCollectionOfPrimitiveValues<string>().ToList(); }
|
||||
|
@ -35,7 +35,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
"markAsRead", (o,n) => { o.MarkAsRead = n.GetBoolValue(); }
|
||||
},
|
||||
{
|
||||
"markImportance", (o,n) => { o.MarkImportance = n.GetObjectValue<Importance>(); }
|
||||
"markImportance", (o,n) => { o.MarkImportance = n.GetEnumValue<Importance>(); }
|
||||
},
|
||||
{
|
||||
"moveToFolder", (o,n) => { o.MoveToFolder = n.GetStringValue(); }
|
||||
|
@ -57,7 +57,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
writer.WriteCollectionOfObjectValues<Recipient>("forwardAsAttachmentTo", ForwardAsAttachmentTo);
|
||||
writer.WriteCollectionOfObjectValues<Recipient>("forwardTo", ForwardTo);
|
||||
writer.WriteBoolValue("markAsRead", MarkAsRead);
|
||||
writer.WriteObjectValue<Importance>("markImportance", MarkImportance);
|
||||
writer.WriteEnumValue<Importance>("markImportance", MarkImportance);
|
||||
writer.WriteStringValue("moveToFolder", MoveToFolder);
|
||||
writer.WriteBoolValue("permanentDelete", PermanentDelete);
|
||||
writer.WriteCollectionOfObjectValues<Recipient>("redirectTo", RedirectTo);
|
||||
|
|
|
@ -8,30 +8,30 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
public List<string> BodyOrSubjectContains { get; set; }
|
||||
public List<string> Categories { get; set; }
|
||||
public List<Recipient> FromAddresses { get; set; }
|
||||
public bool HasAttachments { get; set; }
|
||||
public bool? HasAttachments { get; set; }
|
||||
public List<string> HeaderContains { get; set; }
|
||||
public Importance Importance { get; set; }
|
||||
public bool IsApprovalRequest { get; set; }
|
||||
public bool IsAutomaticForward { get; set; }
|
||||
public bool IsAutomaticReply { get; set; }
|
||||
public bool IsEncrypted { get; set; }
|
||||
public bool IsMeetingRequest { get; set; }
|
||||
public bool IsMeetingResponse { get; set; }
|
||||
public bool IsNonDeliveryReport { get; set; }
|
||||
public bool IsPermissionControlled { get; set; }
|
||||
public bool IsReadReceipt { get; set; }
|
||||
public bool IsSigned { get; set; }
|
||||
public bool IsVoicemail { get; set; }
|
||||
public MessageActionFlag MessageActionFlag { get; set; }
|
||||
public bool NotSentToMe { get; set; }
|
||||
public Importance? Importance { get; set; }
|
||||
public bool? IsApprovalRequest { get; set; }
|
||||
public bool? IsAutomaticForward { get; set; }
|
||||
public bool? IsAutomaticReply { get; set; }
|
||||
public bool? IsEncrypted { get; set; }
|
||||
public bool? IsMeetingRequest { get; set; }
|
||||
public bool? IsMeetingResponse { get; set; }
|
||||
public bool? IsNonDeliveryReport { get; set; }
|
||||
public bool? IsPermissionControlled { get; set; }
|
||||
public bool? IsReadReceipt { get; set; }
|
||||
public bool? IsSigned { get; set; }
|
||||
public bool? IsVoicemail { get; set; }
|
||||
public MessageActionFlag? MessageActionFlag { get; set; }
|
||||
public bool? NotSentToMe { get; set; }
|
||||
public List<string> RecipientContains { get; set; }
|
||||
public List<string> SenderContains { get; set; }
|
||||
public Sensitivity Sensitivity { get; set; }
|
||||
public bool SentCcMe { get; set; }
|
||||
public bool SentOnlyToMe { get; set; }
|
||||
public Sensitivity? Sensitivity { get; set; }
|
||||
public bool? SentCcMe { get; set; }
|
||||
public bool? SentOnlyToMe { get; set; }
|
||||
public List<Recipient> SentToAddresses { get; set; }
|
||||
public bool SentToMe { get; set; }
|
||||
public bool SentToOrCcMe { get; set; }
|
||||
public bool? SentToMe { get; set; }
|
||||
public bool? SentToOrCcMe { get; set; }
|
||||
public List<string> SubjectContains { get; set; }
|
||||
public SizeRange WithinSizeRange { get; set; }
|
||||
public IDictionary<string, Action<MessageRulePredicates, IParseNode>> DeserializeFields => new Dictionary<string, Action<MessageRulePredicates, IParseNode>> {
|
||||
|
@ -54,7 +54,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
"headerContains", (o,n) => { o.HeaderContains = n.GetCollectionOfPrimitiveValues<string>().ToList(); }
|
||||
},
|
||||
{
|
||||
"importance", (o,n) => { o.Importance = n.GetObjectValue<Importance>(); }
|
||||
"importance", (o,n) => { o.Importance = n.GetEnumValue<Importance>(); }
|
||||
},
|
||||
{
|
||||
"isApprovalRequest", (o,n) => { o.IsApprovalRequest = n.GetBoolValue(); }
|
||||
|
@ -90,7 +90,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
"isVoicemail", (o,n) => { o.IsVoicemail = n.GetBoolValue(); }
|
||||
},
|
||||
{
|
||||
"messageActionFlag", (o,n) => { o.MessageActionFlag = n.GetObjectValue<MessageActionFlag>(); }
|
||||
"messageActionFlag", (o,n) => { o.MessageActionFlag = n.GetEnumValue<MessageActionFlag>(); }
|
||||
},
|
||||
{
|
||||
"notSentToMe", (o,n) => { o.NotSentToMe = n.GetBoolValue(); }
|
||||
|
@ -102,7 +102,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
"senderContains", (o,n) => { o.SenderContains = n.GetCollectionOfPrimitiveValues<string>().ToList(); }
|
||||
},
|
||||
{
|
||||
"sensitivity", (o,n) => { o.Sensitivity = n.GetObjectValue<Sensitivity>(); }
|
||||
"sensitivity", (o,n) => { o.Sensitivity = n.GetEnumValue<Sensitivity>(); }
|
||||
},
|
||||
{
|
||||
"sentCcMe", (o,n) => { o.SentCcMe = n.GetBoolValue(); }
|
||||
|
@ -133,7 +133,7 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
writer.WriteCollectionOfObjectValues<Recipient>("fromAddresses", FromAddresses);
|
||||
writer.WriteBoolValue("hasAttachments", HasAttachments);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("headerContains", HeaderContains);
|
||||
writer.WriteObjectValue<Importance>("importance", Importance);
|
||||
writer.WriteEnumValue<Importance>("importance", Importance);
|
||||
writer.WriteBoolValue("isApprovalRequest", IsApprovalRequest);
|
||||
writer.WriteBoolValue("isAutomaticForward", IsAutomaticForward);
|
||||
writer.WriteBoolValue("isAutomaticReply", IsAutomaticReply);
|
||||
|
@ -145,11 +145,11 @@ namespace Graphdotnetv4.Users.MailFolders {
|
|||
writer.WriteBoolValue("isReadReceipt", IsReadReceipt);
|
||||
writer.WriteBoolValue("isSigned", IsSigned);
|
||||
writer.WriteBoolValue("isVoicemail", IsVoicemail);
|
||||
writer.WriteObjectValue<MessageActionFlag>("messageActionFlag", MessageActionFlag);
|
||||
writer.WriteEnumValue<MessageActionFlag>("messageActionFlag", MessageActionFlag);
|
||||
writer.WriteBoolValue("notSentToMe", NotSentToMe);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("recipientContains", RecipientContains);
|
||||
writer.WriteCollectionOfPrimitiveValues<string>("senderContains", SenderContains);
|
||||
writer.WriteObjectValue<Sensitivity>("sensitivity", Sensitivity);
|
||||
writer.WriteEnumValue<Sensitivity>("sensitivity", Sensitivity);
|
||||
writer.WriteBoolValue("sentCcMe", SentCcMe);
|
||||
writer.WriteBoolValue("sentOnlyToMe", SentOnlyToMe);
|
||||
writer.WriteCollectionOfObjectValues<Recipient>("sentToAddresses", SentToAddresses);
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.Messages {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
using Kiota.Abstractions.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users.MailFolders {
|
||||
public class Sensitivity : IParsable<Sensitivity> {
|
||||
public IDictionary<string, Action<Sensitivity, IParseNode>> DeserializeFields => new Dictionary<string, Action<Sensitivity, IParseNode>> {
|
||||
};
|
||||
public void Serialize(ISerializationWriter writer) {
|
||||
}
|
||||
public enum Sensitivity {
|
||||
Normal,
|
||||
Personal,
|
||||
Private,
|
||||
Confidential,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -4,8 +4,8 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
namespace Graphdotnetv4.Users.MailFolders {
|
||||
public class SizeRange : IParsable<SizeRange> {
|
||||
public int MaximumSize { get; set; }
|
||||
public int MinimumSize { get; set; }
|
||||
public int? MaximumSize { get; set; }
|
||||
public int? MinimumSize { get; set; }
|
||||
public IDictionary<string, Action<SizeRange, IParseNode>> DeserializeFields => new Dictionary<string, Action<SizeRange, IParseNode>> {
|
||||
{
|
||||
"maximumSize", (o,n) => { o.MaximumSize = n.GetIntValue(); }
|
||||
|
|
|
@ -12,15 +12,15 @@ namespace Graphdotnetv4.Users {
|
|||
public string ConversationIndex { get; set; }
|
||||
public FollowupFlag Flag { get; set; }
|
||||
public Recipient From { get; set; }
|
||||
public bool HasAttachments { get; set; }
|
||||
public Importance Importance { get; set; }
|
||||
public InferenceClassificationType InferenceClassification { get; set; }
|
||||
public bool? HasAttachments { get; set; }
|
||||
public Importance? Importance { get; set; }
|
||||
public InferenceClassificationType? InferenceClassification { get; set; }
|
||||
public List<InternetMessageHeader> InternetMessageHeaders { get; set; }
|
||||
public string InternetMessageId { get; set; }
|
||||
public bool IsDeliveryReceiptRequested { get; set; }
|
||||
public bool IsDraft { get; set; }
|
||||
public bool IsRead { get; set; }
|
||||
public bool IsReadReceiptRequested { get; set; }
|
||||
public bool? IsDeliveryReceiptRequested { get; set; }
|
||||
public bool? IsDraft { get; set; }
|
||||
public bool? IsRead { get; set; }
|
||||
public bool? IsReadReceiptRequested { get; set; }
|
||||
public string ParentFolderId { get; set; }
|
||||
public string ReceivedDateTime { get; set; }
|
||||
public List<Recipient> ReplyTo { get; set; }
|
||||
|
@ -63,10 +63,10 @@ namespace Graphdotnetv4.Users {
|
|||
"hasAttachments", (o,n) => { o.HasAttachments = n.GetBoolValue(); }
|
||||
},
|
||||
{
|
||||
"importance", (o,n) => { o.Importance = n.GetObjectValue<Importance>(); }
|
||||
"importance", (o,n) => { o.Importance = n.GetEnumValue<Importance>(); }
|
||||
},
|
||||
{
|
||||
"inferenceClassification", (o,n) => { o.InferenceClassification = n.GetObjectValue<InferenceClassificationType>(); }
|
||||
"inferenceClassification", (o,n) => { o.InferenceClassification = n.GetEnumValue<InferenceClassificationType>(); }
|
||||
},
|
||||
{
|
||||
"internetMessageHeaders", (o,n) => { o.InternetMessageHeaders = n.GetCollectionOfObjectValues<InternetMessageHeader>().ToList(); }
|
||||
|
@ -137,8 +137,8 @@ namespace Graphdotnetv4.Users {
|
|||
writer.WriteObjectValue<FollowupFlag>("flag", Flag);
|
||||
writer.WriteObjectValue<Recipient>("from", From);
|
||||
writer.WriteBoolValue("hasAttachments", HasAttachments);
|
||||
writer.WriteObjectValue<Importance>("importance", Importance);
|
||||
writer.WriteObjectValue<InferenceClassificationType>("inferenceClassification", InferenceClassification);
|
||||
writer.WriteEnumValue<Importance>("importance", Importance);
|
||||
writer.WriteEnumValue<InferenceClassificationType>("inferenceClassification", InferenceClassification);
|
||||
writer.WriteCollectionOfObjectValues<InternetMessageHeader>("internetMessageHeaders", InternetMessageHeaders);
|
||||
writer.WriteStringValue("internetMessageId", InternetMessageId);
|
||||
writer.WriteBoolValue("isDeliveryReceiptRequested", IsDeliveryReceiptRequested);
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.Messages.Attachments {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.Messages.Extensions {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.Messages {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -50,11 +50,11 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties {
|
|||
public IHttpCore HttpCore { get; set; }
|
||||
public Func<string, ISerializationWriter> SerializerFactory { get; set; }
|
||||
public class GetQueryParameters : QueryParametersBase {
|
||||
public int Top { get; set; }
|
||||
public int Skip { get; set; }
|
||||
public int? Top { get; set; }
|
||||
public int? Skip { get; set; }
|
||||
public string Search { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public bool Count { get; set; }
|
||||
public bool? Count { get; set; }
|
||||
public string[] Orderby { get; set; }
|
||||
public string[] Select { get; set; }
|
||||
public string[] Expand { get; set; }
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
package graphjavav4.utilities.users;
|
||||
|
||||
import com.microsoft.kiota.serialization.Parsable;
|
||||
import com.microsoft.kiota.serialization.ParseNode;
|
||||
import com.microsoft.kiota.serialization.SerializationWriter;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class BodyType implements Parsable {
|
||||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
import com.microsoft.kiota.serialization.ValuedEnum;
|
||||
|
||||
public enum BodyType implements ValuedEnum {
|
||||
Text("text"),
|
||||
Html("html");
|
||||
public final String value;
|
||||
BodyType(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(0);
|
||||
return fields;
|
||||
public String getValue() { return this.value; }
|
||||
@javax.annotation.Nullable
|
||||
public static BodyType forValue(@javax.annotation.Nonnull final String searchValue) {
|
||||
switch(searchValue) {
|
||||
case "text": return Text;
|
||||
case "html": return Html;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ public class FollowupFlag implements Parsable {
|
|||
Objects.requireNonNull(writer);
|
||||
writer.writeObjectValue("completedDateTime", completedDateTime);
|
||||
writer.writeObjectValue("dueDateTime", dueDateTime);
|
||||
writer.writeObjectValue("flagStatus", flagStatus);
|
||||
writer.writeEnumValue("flagStatus", flagStatus);
|
||||
writer.writeObjectValue("startDateTime", startDateTime);
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
|
@ -28,7 +28,7 @@ public class FollowupFlag implements Parsable {
|
|||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(4);
|
||||
fields.put("completedDateTime", (o, n) -> { ((FollowupFlag)o).completedDateTime = n.getObjectValue(DateTimeTimeZone.class); });
|
||||
fields.put("dueDateTime", (o, n) -> { ((FollowupFlag)o).dueDateTime = n.getObjectValue(DateTimeTimeZone.class); });
|
||||
fields.put("flagStatus", (o, n) -> { ((FollowupFlag)o).flagStatus = n.getObjectValue(FollowupFlagStatus.class); });
|
||||
fields.put("flagStatus", (o, n) -> { ((FollowupFlag)o).flagStatus = n.getEnumValue(FollowupFlagStatus.class); });
|
||||
fields.put("startDateTime", (o, n) -> { ((FollowupFlag)o).startDateTime = n.getObjectValue(DateTimeTimeZone.class); });
|
||||
return fields;
|
||||
}
|
||||
|
|
|
@ -1,19 +1,24 @@
|
|||
package graphjavav4.utilities.users;
|
||||
|
||||
import com.microsoft.kiota.serialization.Parsable;
|
||||
import com.microsoft.kiota.serialization.ParseNode;
|
||||
import com.microsoft.kiota.serialization.SerializationWriter;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class FollowupFlagStatus implements Parsable {
|
||||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
import com.microsoft.kiota.serialization.ValuedEnum;
|
||||
|
||||
public enum FollowupFlagStatus implements ValuedEnum {
|
||||
NotFlagged("notFlagged"),
|
||||
Complete("complete"),
|
||||
Flagged("flagged");
|
||||
public final String value;
|
||||
FollowupFlagStatus(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(0);
|
||||
return fields;
|
||||
public String getValue() { return this.value; }
|
||||
@javax.annotation.Nullable
|
||||
public static FollowupFlagStatus forValue(@javax.annotation.Nonnull final String searchValue) {
|
||||
switch(searchValue) {
|
||||
case "notFlagged": return NotFlagged;
|
||||
case "complete": return Complete;
|
||||
case "flagged": return Flagged;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,19 +1,24 @@
|
|||
package graphjavav4.utilities.users;
|
||||
|
||||
import com.microsoft.kiota.serialization.Parsable;
|
||||
import com.microsoft.kiota.serialization.ParseNode;
|
||||
import com.microsoft.kiota.serialization.SerializationWriter;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class Importance implements Parsable {
|
||||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
import com.microsoft.kiota.serialization.ValuedEnum;
|
||||
|
||||
public enum Importance implements ValuedEnum {
|
||||
Low("low"),
|
||||
Normal("normal"),
|
||||
High("high");
|
||||
public final String value;
|
||||
Importance(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(0);
|
||||
return fields;
|
||||
public String getValue() { return this.value; }
|
||||
@javax.annotation.Nullable
|
||||
public static Importance forValue(@javax.annotation.Nonnull final String searchValue) {
|
||||
switch(searchValue) {
|
||||
case "low": return Low;
|
||||
case "normal": return Normal;
|
||||
case "high": return High;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
package graphjavav4.utilities.users;
|
||||
|
||||
import com.microsoft.kiota.serialization.Parsable;
|
||||
import com.microsoft.kiota.serialization.ParseNode;
|
||||
import com.microsoft.kiota.serialization.SerializationWriter;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class InferenceClassificationType implements Parsable {
|
||||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
import com.microsoft.kiota.serialization.ValuedEnum;
|
||||
|
||||
public enum InferenceClassificationType implements ValuedEnum {
|
||||
Focused("focused"),
|
||||
Other("other");
|
||||
public final String value;
|
||||
InferenceClassificationType(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(0);
|
||||
return fields;
|
||||
public String getValue() { return this.value; }
|
||||
@javax.annotation.Nullable
|
||||
public static InferenceClassificationType forValue(@javax.annotation.Nonnull final String searchValue) {
|
||||
switch(searchValue) {
|
||||
case "focused": return Focused;
|
||||
case "other": return Other;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,13 +15,13 @@ public class ItemBody implements Parsable {
|
|||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
writer.writeStringValue("content", content);
|
||||
writer.writeObjectValue("contentType", contentType);
|
||||
writer.writeEnumValue("contentType", contentType);
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(2);
|
||||
fields.put("content", (o, n) -> { ((ItemBody)o).content = n.getStringValue(); });
|
||||
fields.put("contentType", (o, n) -> { ((ItemBody)o).contentType = n.getObjectValue(BodyType.class); });
|
||||
fields.put("contentType", (o, n) -> { ((ItemBody)o).contentType = n.getEnumValue(BodyType.class); });
|
||||
return fields;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,8 +81,8 @@ public class Message extends OutlookItem implements Parsable {
|
|||
writer.writeObjectValue("flag", flag);
|
||||
writer.writeObjectValue("from", from);
|
||||
writer.writeBooleanValue("hasAttachments", hasAttachments);
|
||||
writer.writeObjectValue("importance", importance);
|
||||
writer.writeObjectValue("inferenceClassification", inferenceClassification);
|
||||
writer.writeEnumValue("importance", importance);
|
||||
writer.writeEnumValue("inferenceClassification", inferenceClassification);
|
||||
writer.writeCollectionOfObjectValues("internetMessageHeaders", internetMessageHeaders);
|
||||
writer.writeStringValue("internetMessageId", internetMessageId);
|
||||
writer.writeBooleanValue("isDeliveryReceiptRequested", isDeliveryReceiptRequested);
|
||||
|
@ -115,8 +115,8 @@ public class Message extends OutlookItem implements Parsable {
|
|||
fields.put("flag", (o, n) -> { ((Message)o).flag = n.getObjectValue(FollowupFlag.class); });
|
||||
fields.put("from", (o, n) -> { ((Message)o).from = n.getObjectValue(Recipient.class); });
|
||||
fields.put("hasAttachments", (o, n) -> { ((Message)o).hasAttachments = n.getBooleanValue(); });
|
||||
fields.put("importance", (o, n) -> { ((Message)o).importance = n.getObjectValue(Importance.class); });
|
||||
fields.put("inferenceClassification", (o, n) -> { ((Message)o).inferenceClassification = n.getObjectValue(InferenceClassificationType.class); });
|
||||
fields.put("importance", (o, n) -> { ((Message)o).importance = n.getEnumValue(Importance.class); });
|
||||
fields.put("inferenceClassification", (o, n) -> { ((Message)o).inferenceClassification = n.getEnumValue(InferenceClassificationType.class); });
|
||||
fields.put("internetMessageHeaders", (o, n) -> { ((Message)o).internetMessageHeaders = n.getCollectionOfObjectValues(InternetMessageHeader.class); });
|
||||
fields.put("internetMessageId", (o, n) -> { ((Message)o).internetMessageId = n.getStringValue(); });
|
||||
fields.put("isDeliveryReceiptRequested", (o, n) -> { ((Message)o).isDeliveryReceiptRequested = n.getBooleanValue(); });
|
||||
|
|
|
@ -18,13 +18,13 @@ public class InferenceClassificationOverride extends Entity implements Parsable
|
|||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
super.serialize(writer);
|
||||
writer.writeObjectValue("classifyAs", classifyAs);
|
||||
writer.writeEnumValue("classifyAs", classifyAs);
|
||||
writer.writeObjectValue("senderEmailAddress", senderEmailAddress);
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(super.getDeserializeFields());
|
||||
fields.put("classifyAs", (o, n) -> { ((InferenceClassificationOverride)o).classifyAs = n.getObjectValue(InferenceClassificationType.class); });
|
||||
fields.put("classifyAs", (o, n) -> { ((InferenceClassificationOverride)o).classifyAs = n.getEnumValue(InferenceClassificationType.class); });
|
||||
fields.put("senderEmailAddress", (o, n) -> { ((InferenceClassificationOverride)o).senderEmailAddress = n.getObjectValue(EmailAddress.class); });
|
||||
return fields;
|
||||
}
|
||||
|
|
|
@ -1,19 +1,40 @@
|
|||
package graphjavav4.utilities.users.mailFolders;
|
||||
|
||||
import com.microsoft.kiota.serialization.Parsable;
|
||||
import com.microsoft.kiota.serialization.ParseNode;
|
||||
import com.microsoft.kiota.serialization.SerializationWriter;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class MessageActionFlag implements Parsable {
|
||||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
import com.microsoft.kiota.serialization.ValuedEnum;
|
||||
|
||||
public enum MessageActionFlag implements ValuedEnum {
|
||||
Any("any"),
|
||||
Call("call"),
|
||||
DoNotForward("doNotForward"),
|
||||
FollowUp("followUp"),
|
||||
Fyi("fyi"),
|
||||
Forward("forward"),
|
||||
NoResponseNecessary("noResponseNecessary"),
|
||||
Read("read"),
|
||||
Reply("reply"),
|
||||
ReplyToAll("replyToAll"),
|
||||
Review("review");
|
||||
public final String value;
|
||||
MessageActionFlag(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(0);
|
||||
return fields;
|
||||
public String getValue() { return this.value; }
|
||||
@javax.annotation.Nullable
|
||||
public static MessageActionFlag forValue(@javax.annotation.Nonnull final String searchValue) {
|
||||
switch(searchValue) {
|
||||
case "any": return Any;
|
||||
case "call": return Call;
|
||||
case "doNotForward": return DoNotForward;
|
||||
case "followUp": return FollowUp;
|
||||
case "fyi": return Fyi;
|
||||
case "forward": return Forward;
|
||||
case "noResponseNecessary": return NoResponseNecessary;
|
||||
case "read": return Read;
|
||||
case "reply": return Reply;
|
||||
case "replyToAll": return ReplyToAll;
|
||||
case "review": return Review;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class MessageRuleActions implements Parsable {
|
|||
writer.writeCollectionOfObjectValues("forwardAsAttachmentTo", forwardAsAttachmentTo);
|
||||
writer.writeCollectionOfObjectValues("forwardTo", forwardTo);
|
||||
writer.writeBooleanValue("markAsRead", markAsRead);
|
||||
writer.writeObjectValue("markImportance", markImportance);
|
||||
writer.writeEnumValue("markImportance", markImportance);
|
||||
writer.writeStringValue("moveToFolder", moveToFolder);
|
||||
writer.writeBooleanValue("permanentDelete", permanentDelete);
|
||||
writer.writeCollectionOfObjectValues("redirectTo", redirectTo);
|
||||
|
@ -56,7 +56,7 @@ public class MessageRuleActions implements Parsable {
|
|||
fields.put("forwardAsAttachmentTo", (o, n) -> { ((MessageRuleActions)o).forwardAsAttachmentTo = n.getCollectionOfObjectValues(Recipient.class); });
|
||||
fields.put("forwardTo", (o, n) -> { ((MessageRuleActions)o).forwardTo = n.getCollectionOfObjectValues(Recipient.class); });
|
||||
fields.put("markAsRead", (o, n) -> { ((MessageRuleActions)o).markAsRead = n.getBooleanValue(); });
|
||||
fields.put("markImportance", (o, n) -> { ((MessageRuleActions)o).markImportance = n.getObjectValue(Importance.class); });
|
||||
fields.put("markImportance", (o, n) -> { ((MessageRuleActions)o).markImportance = n.getEnumValue(Importance.class); });
|
||||
fields.put("moveToFolder", (o, n) -> { ((MessageRuleActions)o).moveToFolder = n.getStringValue(); });
|
||||
fields.put("permanentDelete", (o, n) -> { ((MessageRuleActions)o).permanentDelete = n.getBooleanValue(); });
|
||||
fields.put("redirectTo", (o, n) -> { ((MessageRuleActions)o).redirectTo = n.getCollectionOfObjectValues(Recipient.class); });
|
||||
|
|
|
@ -79,7 +79,7 @@ public class MessageRulePredicates implements Parsable {
|
|||
writer.writeCollectionOfObjectValues("fromAddresses", fromAddresses);
|
||||
writer.writeBooleanValue("hasAttachments", hasAttachments);
|
||||
writer.writeCollectionOfPrimitiveValues("headerContains", headerContains);
|
||||
writer.writeObjectValue("importance", importance);
|
||||
writer.writeEnumValue("importance", importance);
|
||||
writer.writeBooleanValue("isApprovalRequest", isApprovalRequest);
|
||||
writer.writeBooleanValue("isAutomaticForward", isAutomaticForward);
|
||||
writer.writeBooleanValue("isAutomaticReply", isAutomaticReply);
|
||||
|
@ -91,11 +91,11 @@ public class MessageRulePredicates implements Parsable {
|
|||
writer.writeBooleanValue("isReadReceipt", isReadReceipt);
|
||||
writer.writeBooleanValue("isSigned", isSigned);
|
||||
writer.writeBooleanValue("isVoicemail", isVoicemail);
|
||||
writer.writeObjectValue("messageActionFlag", messageActionFlag);
|
||||
writer.writeEnumValue("messageActionFlag", messageActionFlag);
|
||||
writer.writeBooleanValue("notSentToMe", notSentToMe);
|
||||
writer.writeCollectionOfPrimitiveValues("recipientContains", recipientContains);
|
||||
writer.writeCollectionOfPrimitiveValues("senderContains", senderContains);
|
||||
writer.writeObjectValue("sensitivity", sensitivity);
|
||||
writer.writeEnumValue("sensitivity", sensitivity);
|
||||
writer.writeBooleanValue("sentCcMe", sentCcMe);
|
||||
writer.writeBooleanValue("sentOnlyToMe", sentOnlyToMe);
|
||||
writer.writeCollectionOfObjectValues("sentToAddresses", sentToAddresses);
|
||||
|
@ -113,7 +113,7 @@ public class MessageRulePredicates implements Parsable {
|
|||
fields.put("fromAddresses", (o, n) -> { ((MessageRulePredicates)o).fromAddresses = n.getCollectionOfObjectValues(Recipient.class); });
|
||||
fields.put("hasAttachments", (o, n) -> { ((MessageRulePredicates)o).hasAttachments = n.getBooleanValue(); });
|
||||
fields.put("headerContains", (o, n) -> { ((MessageRulePredicates)o).headerContains = n.getCollectionOfPrimitiveValues(String.class); });
|
||||
fields.put("importance", (o, n) -> { ((MessageRulePredicates)o).importance = n.getObjectValue(Importance.class); });
|
||||
fields.put("importance", (o, n) -> { ((MessageRulePredicates)o).importance = n.getEnumValue(Importance.class); });
|
||||
fields.put("isApprovalRequest", (o, n) -> { ((MessageRulePredicates)o).isApprovalRequest = n.getBooleanValue(); });
|
||||
fields.put("isAutomaticForward", (o, n) -> { ((MessageRulePredicates)o).isAutomaticForward = n.getBooleanValue(); });
|
||||
fields.put("isAutomaticReply", (o, n) -> { ((MessageRulePredicates)o).isAutomaticReply = n.getBooleanValue(); });
|
||||
|
@ -125,11 +125,11 @@ public class MessageRulePredicates implements Parsable {
|
|||
fields.put("isReadReceipt", (o, n) -> { ((MessageRulePredicates)o).isReadReceipt = n.getBooleanValue(); });
|
||||
fields.put("isSigned", (o, n) -> { ((MessageRulePredicates)o).isSigned = n.getBooleanValue(); });
|
||||
fields.put("isVoicemail", (o, n) -> { ((MessageRulePredicates)o).isVoicemail = n.getBooleanValue(); });
|
||||
fields.put("messageActionFlag", (o, n) -> { ((MessageRulePredicates)o).messageActionFlag = n.getObjectValue(MessageActionFlag.class); });
|
||||
fields.put("messageActionFlag", (o, n) -> { ((MessageRulePredicates)o).messageActionFlag = n.getEnumValue(MessageActionFlag.class); });
|
||||
fields.put("notSentToMe", (o, n) -> { ((MessageRulePredicates)o).notSentToMe = n.getBooleanValue(); });
|
||||
fields.put("recipientContains", (o, n) -> { ((MessageRulePredicates)o).recipientContains = n.getCollectionOfPrimitiveValues(String.class); });
|
||||
fields.put("senderContains", (o, n) -> { ((MessageRulePredicates)o).senderContains = n.getCollectionOfPrimitiveValues(String.class); });
|
||||
fields.put("sensitivity", (o, n) -> { ((MessageRulePredicates)o).sensitivity = n.getObjectValue(Sensitivity.class); });
|
||||
fields.put("sensitivity", (o, n) -> { ((MessageRulePredicates)o).sensitivity = n.getEnumValue(Sensitivity.class); });
|
||||
fields.put("sentCcMe", (o, n) -> { ((MessageRulePredicates)o).sentCcMe = n.getBooleanValue(); });
|
||||
fields.put("sentOnlyToMe", (o, n) -> { ((MessageRulePredicates)o).sentOnlyToMe = n.getBooleanValue(); });
|
||||
fields.put("sentToAddresses", (o, n) -> { ((MessageRulePredicates)o).sentToAddresses = n.getCollectionOfObjectValues(Recipient.class); });
|
||||
|
|
|
@ -1,19 +1,26 @@
|
|||
package graphjavav4.utilities.users.mailFolders;
|
||||
|
||||
import com.microsoft.kiota.serialization.Parsable;
|
||||
import com.microsoft.kiota.serialization.ParseNode;
|
||||
import com.microsoft.kiota.serialization.SerializationWriter;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class Sensitivity implements Parsable {
|
||||
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
|
||||
Objects.requireNonNull(writer);
|
||||
import com.microsoft.kiota.serialization.ValuedEnum;
|
||||
|
||||
public enum Sensitivity implements ValuedEnum {
|
||||
Normal("normal"),
|
||||
Personal("personal"),
|
||||
Private("private"),
|
||||
Confidential("confidential");
|
||||
public final String value;
|
||||
Sensitivity(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public <T> Map<String, BiConsumer<T, ParseNode>> getDeserializeFields() {
|
||||
final Map<String, BiConsumer<T, ParseNode>> fields = new HashMap<>(0);
|
||||
return fields;
|
||||
public String getValue() { return this.value; }
|
||||
@javax.annotation.Nullable
|
||||
public static Sensitivity forValue(@javax.annotation.Nonnull final String searchValue) {
|
||||
switch(searchValue) {
|
||||
case "normal": return Normal;
|
||||
case "personal": return Personal;
|
||||
case "private": return Private;
|
||||
case "confidential": return Confidential;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class BodyType implements Parsable<BodyType> {
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: BodyType, node: ParseNode) => void> {
|
||||
return new Map<string, (item: BodyType, node: ParseNode) => void>([
|
||||
]);
|
||||
};
|
||||
export enum BodyType {
|
||||
Text = "text",
|
||||
Html = "html",
|
||||
}
|
||||
|
|
|
@ -10,14 +10,14 @@ export class FollowupFlag implements Parsable<FollowupFlag> {
|
|||
public serialize (writer: SerializationWriter) : void {
|
||||
writer.writeObjectValue<DateTimeTimeZone>("completedDateTime", this.completedDateTime);
|
||||
writer.writeObjectValue<DateTimeTimeZone>("dueDateTime", this.dueDateTime);
|
||||
writer.writeObjectValue<FollowupFlagStatus>("flagStatus", this.flagStatus);
|
||||
writer.writeEnumValue<FollowupFlagStatus>("flagStatus", this.flagStatus);
|
||||
writer.writeObjectValue<DateTimeTimeZone>("startDateTime", this.startDateTime);
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: FollowupFlag, node: ParseNode) => void> {
|
||||
return new Map<string, (item: FollowupFlag, node: ParseNode) => void>([
|
||||
["completedDateTime", (o, n) => { o.completedDateTime = n.getObjectValue<DateTimeTimeZone>(DateTimeTimeZone); }],
|
||||
["dueDateTime", (o, n) => { o.dueDateTime = n.getObjectValue<DateTimeTimeZone>(DateTimeTimeZone); }],
|
||||
["flagStatus", (o, n) => { o.flagStatus = n.getObjectValue<FollowupFlagStatus>(FollowupFlagStatus); }],
|
||||
["flagStatus", (o, n) => { o.flagStatus = n.getEnumValue<FollowupFlagStatus>(FollowupFlagStatus); }],
|
||||
["startDateTime", (o, n) => { o.startDateTime = n.getObjectValue<DateTimeTimeZone>(DateTimeTimeZone); }],
|
||||
]);
|
||||
};
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class FollowupFlagStatus implements Parsable<FollowupFlagStatus> {
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: FollowupFlagStatus, node: ParseNode) => void> {
|
||||
return new Map<string, (item: FollowupFlagStatus, node: ParseNode) => void>([
|
||||
]);
|
||||
};
|
||||
export enum FollowupFlagStatus {
|
||||
NotFlagged = "notFlagged",
|
||||
Complete = "complete",
|
||||
Flagged = "flagged",
|
||||
}
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class Importance implements Parsable<Importance> {
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: Importance, node: ParseNode) => void> {
|
||||
return new Map<string, (item: Importance, node: ParseNode) => void>([
|
||||
]);
|
||||
};
|
||||
export enum Importance {
|
||||
Low = "low",
|
||||
Normal = "normal",
|
||||
High = "high",
|
||||
}
|
||||
|
|
|
@ -8,12 +8,12 @@ export class InferenceClassificationOverride extends Entity implements Parsable<
|
|||
public senderEmailAddress?: EmailAddress | undefined;
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
super.serialize(writer);
|
||||
writer.writeObjectValue<InferenceClassificationType>("classifyAs", this.classifyAs);
|
||||
writer.writeEnumValue<InferenceClassificationType>("classifyAs", this.classifyAs);
|
||||
writer.writeObjectValue<EmailAddress>("senderEmailAddress", this.senderEmailAddress);
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: InferenceClassificationOverride, node: ParseNode) => void> {
|
||||
return new Map<string, (item: InferenceClassificationOverride, node: ParseNode) => void>([...super.deserializeFields(),
|
||||
["classifyAs", (o, n) => { o.classifyAs = n.getObjectValue<InferenceClassificationType>(InferenceClassificationType); }],
|
||||
["classifyAs", (o, n) => { o.classifyAs = n.getEnumValue<InferenceClassificationType>(InferenceClassificationType); }],
|
||||
["senderEmailAddress", (o, n) => { o.senderEmailAddress = n.getObjectValue<EmailAddress>(EmailAddress); }],
|
||||
]);
|
||||
};
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class InferenceClassificationType implements Parsable<InferenceClassificationType> {
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: InferenceClassificationType, node: ParseNode) => void> {
|
||||
return new Map<string, (item: InferenceClassificationType, node: ParseNode) => void>([
|
||||
]);
|
||||
};
|
||||
export enum InferenceClassificationType {
|
||||
Focused = "focused",
|
||||
Other = "other",
|
||||
}
|
||||
|
|
|
@ -6,12 +6,12 @@ export class ItemBody implements Parsable<ItemBody> {
|
|||
public contentType?: BodyType | undefined;
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
writer.writeStringValue("content", this.content);
|
||||
writer.writeObjectValue<BodyType>("contentType", this.contentType);
|
||||
writer.writeEnumValue<BodyType>("contentType", this.contentType);
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: ItemBody, node: ParseNode) => void> {
|
||||
return new Map<string, (item: ItemBody, node: ParseNode) => void>([
|
||||
["content", (o, n) => { o.content = n.getStringValue(); }],
|
||||
["contentType", (o, n) => { o.contentType = n.getObjectValue<BodyType>(BodyType); }],
|
||||
["contentType", (o, n) => { o.contentType = n.getEnumValue<BodyType>(BodyType); }],
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class MessageActionFlag implements Parsable<MessageActionFlag> {
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: MessageActionFlag, node: ParseNode) => void> {
|
||||
return new Map<string, (item: MessageActionFlag, node: ParseNode) => void>([
|
||||
]);
|
||||
};
|
||||
export enum MessageActionFlag {
|
||||
Any = "any",
|
||||
Call = "call",
|
||||
DoNotForward = "doNotForward",
|
||||
FollowUp = "followUp",
|
||||
Fyi = "fyi",
|
||||
Forward = "forward",
|
||||
NoResponseNecessary = "noResponseNecessary",
|
||||
Read = "read",
|
||||
Reply = "reply",
|
||||
ReplyToAll = "replyToAll",
|
||||
Review = "review",
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ export class MessageRuleActions implements Parsable<MessageRuleActions> {
|
|||
writer.writeCollectionOfObjectValues<Recipient>("forwardAsAttachmentTo", this.forwardAsAttachmentTo);
|
||||
writer.writeCollectionOfObjectValues<Recipient>("forwardTo", this.forwardTo);
|
||||
writer.writeBooleanValue("markAsRead", this.markAsRead);
|
||||
writer.writeObjectValue<Importance>("markImportance", this.markImportance);
|
||||
writer.writeEnumValue<Importance>("markImportance", this.markImportance);
|
||||
writer.writeStringValue("moveToFolder", this.moveToFolder);
|
||||
writer.writeBooleanValue("permanentDelete", this.permanentDelete);
|
||||
writer.writeCollectionOfObjectValues<Recipient>("redirectTo", this.redirectTo);
|
||||
|
@ -35,7 +35,7 @@ export class MessageRuleActions implements Parsable<MessageRuleActions> {
|
|||
["forwardAsAttachmentTo", (o, n) => { o.forwardAsAttachmentTo = n.getCollectionOfObjectValues<Recipient>(Recipient); }],
|
||||
["forwardTo", (o, n) => { o.forwardTo = n.getCollectionOfObjectValues<Recipient>(Recipient); }],
|
||||
["markAsRead", (o, n) => { o.markAsRead = n.getBooleanValue(); }],
|
||||
["markImportance", (o, n) => { o.markImportance = n.getObjectValue<Importance>(Importance); }],
|
||||
["markImportance", (o, n) => { o.markImportance = n.getEnumValue<Importance>(Importance); }],
|
||||
["moveToFolder", (o, n) => { o.moveToFolder = n.getStringValue(); }],
|
||||
["permanentDelete", (o, n) => { o.permanentDelete = n.getBooleanValue(); }],
|
||||
["redirectTo", (o, n) => { o.redirectTo = n.getCollectionOfObjectValues<Recipient>(Recipient); }],
|
||||
|
|
|
@ -43,7 +43,7 @@ export class MessageRulePredicates implements Parsable<MessageRulePredicates> {
|
|||
writer.writeCollectionOfObjectValues<Recipient>("fromAddresses", this.fromAddresses);
|
||||
writer.writeBooleanValue("hasAttachments", this.hasAttachments);
|
||||
writer.writeCollectionOfPrimitiveValues<string>("headerContains", this.headerContains);
|
||||
writer.writeObjectValue<Importance>("importance", this.importance);
|
||||
writer.writeEnumValue<Importance>("importance", this.importance);
|
||||
writer.writeBooleanValue("isApprovalRequest", this.isApprovalRequest);
|
||||
writer.writeBooleanValue("isAutomaticForward", this.isAutomaticForward);
|
||||
writer.writeBooleanValue("isAutomaticReply", this.isAutomaticReply);
|
||||
|
@ -55,11 +55,11 @@ export class MessageRulePredicates implements Parsable<MessageRulePredicates> {
|
|||
writer.writeBooleanValue("isReadReceipt", this.isReadReceipt);
|
||||
writer.writeBooleanValue("isSigned", this.isSigned);
|
||||
writer.writeBooleanValue("isVoicemail", this.isVoicemail);
|
||||
writer.writeObjectValue<MessageActionFlag>("messageActionFlag", this.messageActionFlag);
|
||||
writer.writeEnumValue<MessageActionFlag>("messageActionFlag", this.messageActionFlag);
|
||||
writer.writeBooleanValue("notSentToMe", this.notSentToMe);
|
||||
writer.writeCollectionOfPrimitiveValues<string>("recipientContains", this.recipientContains);
|
||||
writer.writeCollectionOfPrimitiveValues<string>("senderContains", this.senderContains);
|
||||
writer.writeObjectValue<Sensitivity>("sensitivity", this.sensitivity);
|
||||
writer.writeEnumValue<Sensitivity>("sensitivity", this.sensitivity);
|
||||
writer.writeBooleanValue("sentCcMe", this.sentCcMe);
|
||||
writer.writeBooleanValue("sentOnlyToMe", this.sentOnlyToMe);
|
||||
writer.writeCollectionOfObjectValues<Recipient>("sentToAddresses", this.sentToAddresses);
|
||||
|
@ -76,7 +76,7 @@ export class MessageRulePredicates implements Parsable<MessageRulePredicates> {
|
|||
["fromAddresses", (o, n) => { o.fromAddresses = n.getCollectionOfObjectValues<Recipient>(Recipient); }],
|
||||
["hasAttachments", (o, n) => { o.hasAttachments = n.getBooleanValue(); }],
|
||||
["headerContains", (o, n) => { o.headerContains = n.getCollectionOfPrimitiveValues<string>(); }],
|
||||
["importance", (o, n) => { o.importance = n.getObjectValue<Importance>(Importance); }],
|
||||
["importance", (o, n) => { o.importance = n.getEnumValue<Importance>(Importance); }],
|
||||
["isApprovalRequest", (o, n) => { o.isApprovalRequest = n.getBooleanValue(); }],
|
||||
["isAutomaticForward", (o, n) => { o.isAutomaticForward = n.getBooleanValue(); }],
|
||||
["isAutomaticReply", (o, n) => { o.isAutomaticReply = n.getBooleanValue(); }],
|
||||
|
@ -88,11 +88,11 @@ export class MessageRulePredicates implements Parsable<MessageRulePredicates> {
|
|||
["isReadReceipt", (o, n) => { o.isReadReceipt = n.getBooleanValue(); }],
|
||||
["isSigned", (o, n) => { o.isSigned = n.getBooleanValue(); }],
|
||||
["isVoicemail", (o, n) => { o.isVoicemail = n.getBooleanValue(); }],
|
||||
["messageActionFlag", (o, n) => { o.messageActionFlag = n.getObjectValue<MessageActionFlag>(MessageActionFlag); }],
|
||||
["messageActionFlag", (o, n) => { o.messageActionFlag = n.getEnumValue<MessageActionFlag>(MessageActionFlag); }],
|
||||
["notSentToMe", (o, n) => { o.notSentToMe = n.getBooleanValue(); }],
|
||||
["recipientContains", (o, n) => { o.recipientContains = n.getCollectionOfPrimitiveValues<string>(); }],
|
||||
["senderContains", (o, n) => { o.senderContains = n.getCollectionOfPrimitiveValues<string>(); }],
|
||||
["sensitivity", (o, n) => { o.sensitivity = n.getObjectValue<Sensitivity>(Sensitivity); }],
|
||||
["sensitivity", (o, n) => { o.sensitivity = n.getEnumValue<Sensitivity>(Sensitivity); }],
|
||||
["sentCcMe", (o, n) => { o.sentCcMe = n.getBooleanValue(); }],
|
||||
["sentOnlyToMe", (o, n) => { o.sentOnlyToMe = n.getBooleanValue(); }],
|
||||
["sentToAddresses", (o, n) => { o.sentToAddresses = n.getCollectionOfObjectValues<Recipient>(Recipient); }],
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstractions';
|
||||
|
||||
export class Sensitivity implements Parsable<Sensitivity> {
|
||||
public serialize (writer: SerializationWriter) : void {
|
||||
};
|
||||
public deserializeFields () : Map<string, (item: Sensitivity, node: ParseNode) => void> {
|
||||
return new Map<string, (item: Sensitivity, node: ParseNode) => void>([
|
||||
]);
|
||||
};
|
||||
export enum Sensitivity {
|
||||
Normal = "normal",
|
||||
Personal = "personal",
|
||||
Private = "private",
|
||||
Confidential = "confidential",
|
||||
}
|
||||
|
|
|
@ -53,8 +53,8 @@ export class Message extends OutlookItem implements Parsable<Message> {
|
|||
writer.writeObjectValue<FollowupFlag>("flag", this.flag);
|
||||
writer.writeObjectValue<Recipient>("from", this.from);
|
||||
writer.writeBooleanValue("hasAttachments", this.hasAttachments);
|
||||
writer.writeObjectValue<Importance>("importance", this.importance);
|
||||
writer.writeObjectValue<InferenceClassificationType>("inferenceClassification", this.inferenceClassification);
|
||||
writer.writeEnumValue<Importance>("importance", this.importance);
|
||||
writer.writeEnumValue<InferenceClassificationType>("inferenceClassification", this.inferenceClassification);
|
||||
writer.writeCollectionOfObjectValues<InternetMessageHeader>("internetMessageHeaders", this.internetMessageHeaders);
|
||||
writer.writeStringValue("internetMessageId", this.internetMessageId);
|
||||
writer.writeBooleanValue("isDeliveryReceiptRequested", this.isDeliveryReceiptRequested);
|
||||
|
@ -86,8 +86,8 @@ export class Message extends OutlookItem implements Parsable<Message> {
|
|||
["flag", (o, n) => { o.flag = n.getObjectValue<FollowupFlag>(FollowupFlag); }],
|
||||
["from", (o, n) => { o.from = n.getObjectValue<Recipient>(Recipient); }],
|
||||
["hasAttachments", (o, n) => { o.hasAttachments = n.getBooleanValue(); }],
|
||||
["importance", (o, n) => { o.importance = n.getObjectValue<Importance>(Importance); }],
|
||||
["inferenceClassification", (o, n) => { o.inferenceClassification = n.getObjectValue<InferenceClassificationType>(InferenceClassificationType); }],
|
||||
["importance", (o, n) => { o.importance = n.getEnumValue<Importance>(Importance); }],
|
||||
["inferenceClassification", (o, n) => { o.inferenceClassification = n.getEnumValue<InferenceClassificationType>(InferenceClassificationType); }],
|
||||
["internetMessageHeaders", (o, n) => { o.internetMessageHeaders = n.getCollectionOfObjectValues<InternetMessageHeader>(InternetMessageHeader); }],
|
||||
["internetMessageId", (o, n) => { o.internetMessageId = n.getStringValue(); }],
|
||||
["isDeliveryReceiptRequested", (o, n) => { o.isDeliveryReceiptRequested = n.getBooleanValue(); }],
|
||||
|
|
Загрузка…
Ссылка в новой задаче