/// <summary> /// Generates a JSON encoded string representing the content of the POST request /// </summary> /// <returns> /// A JSON encoded string representing the content of the POST request /// </returns> public string ToPostRequestContent() { return("{ \"keyfobNum\": \"" + SnaggerId.ToString() + "\", \"startTimeStamp\": \"" + OccurredOn + "\", \"endTimeStamp\": \"" + OccurredOn.Add(TimeSpan.FromMilliseconds(TimeInMs)) + "\" }"); }
protected bool Equals(ProductPriceChanged other) => base.Equals(other) && Price == other.Price && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
protected bool Equals(ProductNameChanged other) => base.Equals(other) && Name == other.Name && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
protected bool Equals(ProductDescriptionChanged other) => base.Equals(other) && Description == other.Description && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
protected bool Equals(ProductDefined other) => base.Equals(other) && Description == other.Description && Name == other.Name && OccurredOn.Equals(other.OccurredOn) && Price == other.Price && Version == other.Version;
public override string ToString() { return(this.GetType().Name + " event occurred at " + OccurredOn.ToString("HH:mm:ss.fff") + " in call context " + CallContext.FullCallId); }