Initial Commit
This commit is contained in:
154
Epi2O365/Model/ContactPersonDetail.cs
Normal file
154
Epi2O365/Model/ContactPersonDetail.cs
Normal file
@@ -0,0 +1,154 @@
|
||||
using Microsoft.Graph.Models;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Epi2O365.Model
|
||||
{
|
||||
public partial class ContactPersonDetail
|
||||
{
|
||||
[JsonProperty("success")]
|
||||
public bool Success { get; set; }
|
||||
|
||||
[JsonProperty("namespace")]
|
||||
public string Namespace { get; set; }
|
||||
|
||||
[JsonProperty("action")]
|
||||
public string Action { get; set; }
|
||||
|
||||
[JsonProperty("templateSignature")]
|
||||
public string TemplateSignature { get; set; }
|
||||
|
||||
[JsonProperty("payload_length")]
|
||||
public long PayloadLength { get; set; }
|
||||
|
||||
[JsonProperty("is_send_payload")]
|
||||
public bool IsSendPayload { get; set; }
|
||||
|
||||
[JsonProperty("payload")]
|
||||
public List<ContactPersonPayload> Payload { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public partial class ContactPersonPayload
|
||||
{
|
||||
[JsonProperty("primary_key")]
|
||||
public long PrimaryKey { get; set; }
|
||||
|
||||
[JsonProperty("contact_pk")]
|
||||
public long ContactPk { get; set; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("first_name")]
|
||||
public string FirstName { get; set; }
|
||||
|
||||
[JsonProperty("last_name")]
|
||||
public string LastName { get; set; }
|
||||
|
||||
[JsonProperty("nickname")]
|
||||
public string Nickname { get; set; }
|
||||
|
||||
[JsonProperty("position")]
|
||||
public string Position { get; set; }
|
||||
|
||||
[JsonProperty("date_of_birth")]
|
||||
public string DateOfBirth { get; set; }
|
||||
|
||||
[JsonProperty("department")]
|
||||
public string Department { get; set; }
|
||||
|
||||
[JsonProperty("salutation")]
|
||||
public string Salutation { get; set; }
|
||||
|
||||
[JsonProperty("grade")]
|
||||
public string Grade { get; set; }
|
||||
|
||||
[JsonProperty("has_image")]
|
||||
public bool HasImage { get; set; }
|
||||
|
||||
[JsonProperty("communication")]
|
||||
public List<ContactPersonCommunication> Communication { get; set; }
|
||||
|
||||
|
||||
|
||||
[JsonProperty("searchindex")]
|
||||
public List<object> Searchindex { get; set; }
|
||||
|
||||
[JsonProperty("date_changed")]
|
||||
public DateTimeOffset DateChanged { get; set; }
|
||||
|
||||
[JsonProperty("time_changed")]
|
||||
public long TimeChanged { get; set; }
|
||||
|
||||
[JsonProperty("user_changed")]
|
||||
public string UserChanged { get; set; }
|
||||
|
||||
[JsonProperty("date_created")]
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
|
||||
[JsonProperty("time_created")]
|
||||
public long TimeCreated { get; set; }
|
||||
|
||||
[JsonProperty("user_created")]
|
||||
public string UserCreated { get; set; }
|
||||
|
||||
public DateTime getDateTimeCreated()
|
||||
{
|
||||
TimeSpan time = TimeSpan.FromSeconds(TimeCreated);
|
||||
return DateCreated.Date + time; // Combine date and time
|
||||
}
|
||||
|
||||
public DateTime getDateTimeChanged()
|
||||
{
|
||||
TimeSpan time = TimeSpan.FromSeconds(TimeChanged);
|
||||
return DateChanged.Date + time; // Combine date and time
|
||||
}
|
||||
|
||||
|
||||
[JsonProperty("_communication_length")]
|
||||
public long CommunicationLength { get; set; }
|
||||
|
||||
[JsonProperty("_contact_chrono_length")]
|
||||
public long ContactChronoLength { get; set; }
|
||||
}
|
||||
|
||||
public partial class ContactPersonCommunication
|
||||
{
|
||||
[JsonProperty("primary_key")]
|
||||
public long PrimaryKey { get; set; }
|
||||
|
||||
[JsonProperty("contact_pk")]
|
||||
public long ContactPk { get; set; }
|
||||
|
||||
[JsonProperty("contact_person_pk")]
|
||||
public long ContactPersonPk { get; set; }
|
||||
|
||||
[JsonProperty("uplink")]
|
||||
public string Uplink { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public long Type { get; set; }
|
||||
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonProperty("phone_match_number")]
|
||||
public string PhoneMatchNumber { get; set; }
|
||||
|
||||
[JsonProperty("position")]
|
||||
public long Position { get; set; }
|
||||
|
||||
[JsonProperty("is_newsletter")]
|
||||
public bool IsNewsletter { get; set; }
|
||||
|
||||
[JsonProperty("is_invoice")]
|
||||
public bool IsInvoice { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user