Models

APIUsage

namespace Objectia.Api
{
    public class APIUsage 
    {
        public int GeoLocationRequests { get; set; }
        public int MailRequests { get; set; }
    }
}

IPCurrency

namespace Objectia.Api
{
    public class IPCurrency
    {
        public string Code { get; set; }
        public string NumericCode { get; set; }
        public string Name { get; set; }
        public string PluralName { get; set; }
        public string Symbol { get; set; }
        public string NativeSymbol { get; set; }
        public int DecimalDigits { get; set; }
    }
}

IPLanguage

namespace Objectia.Api
{
    public class IPLanguage
    {
        public string Code { get; set; }
        public string Code2 { get; set; }
        public string Name { get; set; }
        public string NativeName { get; set; }
        public bool RTL = false;
    }
}

IPLocation

namespace Objectia.Api
{
    public class IPLocation
    {
        public string IpAddress { get; set; }
        public string Type { get; set; }
        public string Hostname { get; set; }
        public string Continent { get; set; }
        public string ContinentCode { get; set; }
        public string Country { get; set; }
        public string CountryNative { get; set; }
        public string CountryCode { get; set; }
        public string CountryCode3 { get; set; }
        public string Capital { get; set; }
        public string Region { get; set; }
        public string RegionCode { get; set; }
        public string City { get; set; }
        public string Postcode { get; set; }
        public float Latitude = 0;
        public float Longitude = 0;
        public string PhonePrefix { get; set; }
        public IPCurrency[] Currencies { get; set; }
        public IPLanguage[] Languages { get; set; }
        public string Flag { get; set; }
        public string FlagEmoji { get; set; }
        public bool IsEU { get; set; }
        public string TLD { get; set; }
        public IPTimezone Timezone { get; set; }
        public IPSecurity Security { get; set; }
    }
}

IPSecurity

namespace Objectia.Api
{
    public class IPSecurity
    {
        public bool IsProxy { get; set; }   
        public string ProxyType { get; set; }   
        public bool IsCrawler { get; set; }   
        public string CrawlerName { get; set; }   
        public string CrawlerType { get; set; }   
        public bool IsTOR { get; set; }   
        public string ThreatLevel { get; set; }   
        public string[] ThreatTypes { get; set; }   
    }
}

IPTimezone

namespace Objectia.Api
{
    public class IPTimezone
    {
        public string id { get; set; }
        public DateTime LocalTime { get; set; }
        public int GMTOffset { get; set; }
        public string Code { get; set; }
        public bool DaylightSaving { get; set; }
    }
} 

MailMessage

namespace Objectia.Api
{
    public class MailMessage {
        // Constructor
        public MailMessage(string from, string subject, string text, params string[] to);
        // Properties
        public DateTime? Date { get; set; }
        public string From { get; set; }
        public string FromName { get; set; }
        public string ReplyTo { get; set; }
        public List<string> To { get; set; }
        public List<string> Cc { get; set; }
        public List<string> Bcc { get; set; }
        public string Subject { get; set; }
        public string Text { get; set; }
        public string HTML { get; set; }
        public List<string> Attachments { get; set; }
        public List<string> Tags { get; set; }
        public string Charset { get; set; }
        public string Encoding { get; set; }
        public bool? RequireTLS { get; set; }
        public bool? VerifyCertificate { get; set; }
        public bool? OpenTracking { get; set; }
        public bool? ClickTracking { get; set; }
        public bool? PlainTextClickTracking { get; set; }
        public bool? UnsubscribeTracking { get; set; }
        public bool? TestMode { get; set; }
        // Methods
        public void AddCc(params string[] cc);
        public void AddBcc(params string[] bcc);
        public void AddAttachment(string fileName);
        public void AddTag(string tag);
    }
}

MailReceipt

namespace Objectia.Api
{
    public class MailReceipt
    {
        public string ID { get; }
        public int AcceptedRecipients { get; }
        public int RejectedRecipients { get; }
    }
}