/// <summary> /// Returns true if Stacktrace instances are equal /// </summary> /// <param name="other">Instance of Stacktrace to be compared</param> /// <returns>Boolean</returns> public bool Equals(Stacktrace other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return(false); }
/// <summary> /// Initializes a new instance of the <see cref="AppEvent" /> class. /// </summary> /// <param name="ApiKey">API key generated for the application (required).</param> /// <param name="Classification">one of 'debug','info','warning','error' or a custom string (required).</param> /// <param name="EventType">type or event or error (eg. NullPointerException) (required).</param> /// <param name="EventMessage">message containing details of the event or error (required).</param> /// <param name="EventTime">(optional) event time in ms since epoch.</param> /// <param name="EventStacktrace">EventStacktrace.</param> /// <param name="EventUser">(optional) event user identifying a user.</param> /// <param name="EventSession">(optional) session identification.</param> /// <param name="ContextAppVersion">(optional) application version information.</param> /// <param name="ContextEnvName">(optional) one of 'development','staging','production' or a custom string.</param> /// <param name="ContextEnvVersion">(optional) version of environment.</param> /// <param name="ContextEnvHostname">(optional) hostname or ID of environment.</param> /// <param name="ContextAppBrowser">(optional) browser name if running in a browser (eg. Chrome).</param> /// <param name="ContextAppBrowserVersion">(optional) browser version if running in a browser.</param> /// <param name="ContextAppOS">(optional) OS the application is running on.</param> /// <param name="ContextAppOSVersion">(optional) OS version the application is running on.</param> /// <param name="ContextDataCenter">(optional) Data center the application is running on or connected to.</param> /// <param name="ContextDataCenterRegion">(optional) Data center region.</param> /// <param name="CustomProperties">CustomProperties.</param> /// <param name="CustomSegments">CustomSegments.</param> public AppEvent(string ApiKey = null, string Classification = null, string EventType = null, string EventMessage = null, long?EventTime = null, Stacktrace EventStacktrace = null, string EventUser = null, string EventSession = null, string ContextAppVersion = null, string ContextEnvName = null, string ContextEnvVersion = null, string ContextEnvHostname = null, string ContextAppBrowser = null, string ContextAppBrowserVersion = null, string ContextAppOS = null, string ContextAppOSVersion = null, string ContextDataCenter = null, string ContextDataCenterRegion = null, CustomData CustomProperties = null, CustomData CustomSegments = null) { // to ensure "ApiKey" is required (not null) if (ApiKey == null) { throw new InvalidDataException("ApiKey is a required property for AppEvent and cannot be null"); } else { this.ApiKey = ApiKey; } // to ensure "Classification" is required (not null) if (Classification == null) { throw new InvalidDataException("Classification is a required property for AppEvent and cannot be null"); } else { this.Classification = Classification; } // to ensure "EventType" is required (not null) if (EventType == null) { throw new InvalidDataException("EventType is a required property for AppEvent and cannot be null"); } else { this.EventType = EventType; } // to ensure "EventMessage" is required (not null) if (EventMessage == null) { throw new InvalidDataException("EventMessage is a required property for AppEvent and cannot be null"); } else { this.EventMessage = EventMessage; } this.EventTime = EventTime; this.EventStacktrace = EventStacktrace; this.EventUser = EventUser; this.EventSession = EventSession; this.ContextAppVersion = ContextAppVersion; this.ContextEnvName = ContextEnvName; this.ContextEnvVersion = ContextEnvVersion; this.ContextEnvHostname = ContextEnvHostname; this.ContextAppBrowser = ContextAppBrowser; this.ContextAppBrowserVersion = ContextAppBrowserVersion; this.ContextAppOS = ContextAppOS; this.ContextAppOSVersion = ContextAppOSVersion; this.ContextDataCenter = ContextDataCenter; this.ContextDataCenterRegion = ContextDataCenterRegion; this.CustomProperties = CustomProperties; this.CustomSegments = CustomSegments; }