o365rwsclient/TenantReport/MailboxUsage.cs

48 строки
1.2 KiB
C#

using System;
using System.Xml;
using System.Xml.Serialization;
namespace Microsoft.Office365.ReportingWebServiceClient.TenantReport
{
[Serializable]
public class MailboxUsage : TenantReportObject
{
[XmlElement]
public int TotalMailboxCount
{
get;
set;
}
[XmlElement]
public int TotalInactiveMailboxCount
{
get;
set;
}
[XmlElement]
public int MailboxesOverWarningSize
{
get;
set;
}
[XmlElement]
public int MailboxesUsedLessthan25Percent
{
get;
set;
}
public override void LoadFromXml(XmlNode node)
{
base.LoadFromXml(node);
TotalMailboxCount = Utils.TryParseInt(base.TryGetValue("TotalMailboxCount"), 0);
TotalInactiveMailboxCount = Utils.TryParseInt(base.TryGetValue("TotalInactiveMailboxCount"), 0);
MailboxesOverWarningSize = Utils.TryParseInt(base.TryGetValue("MailboxesOverWarningSize"), 0);
MailboxesUsedLessthan25Percent = Utils.TryParseInt(base.TryGetValue("MailboxesUsedLessthan25Percent"), 0);
}
}
}