Class CustomDateTimeOffsetConverter
A JsonConverter especially for the Jira datetime format
Inheritance
System.Object
Newtonsoft.Json.JsonConverter
Newtonsoft.Json.Converters.DateTimeConverterBase
CustomDateTimeOffsetConverter
Inherited Members
Newtonsoft.Json.JsonConverter.CanRead
Newtonsoft.Json.JsonConverter.CanWrite
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:Dapplo.Jira.Json
Assembly:Dapplo.Jira.dll
Syntax
public class CustomDateTimeOffsetConverter : DateTimeConverterBase
Constructors
| Improve this Doc View SourceCustomDateTimeOffsetConverter()
Default constructor with the Iso8601 format
Declaration
public CustomDateTimeOffsetConverter()
CustomDateTimeOffsetConverter(String)
Constructor which supports a custom format
Declaration
public CustomDateTimeOffsetConverter(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format |
Methods
| Improve this Doc View SourceCanConvert(Type)
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Newtonsoft.Json.Converters.DateTimeConverterBase.CanConvert(System.Type)
|
Improve this Doc
View Source
ReadJson(JsonReader, Type, Object, JsonSerializer)
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonReader | reader | |
System.Type | objectType | |
System.Object | existingValue | |
Newtonsoft.Json.JsonSerializer | serializer |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)
|
Improve this Doc
View Source
WriteJson(JsonWriter, Object, JsonSerializer)
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonWriter | writer | |
System.Object | value | |
Newtonsoft.Json.JsonSerializer | serializer |
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)