Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the JsonTimeZone class.
 /// </summary>
 /// <param name="dSTSavings">The value of the daylight saving
 /// time.</param>
 /// <param name="id">The ID of the timezone.</param>
 /// <param name="availableIDs">An array of available IDs.</param>
 /// <param name="displayName">The display name of the timezone.</param>
 /// <param name="rawOffset">The raw offset of the timezone.</param>
 public JsonTimeZone(int?dSTSavings = default(int?), string id = default(string), IList <string> availableIDs = default(IList <string>), JsonTimeZone defaultProperty = default(JsonTimeZone), string displayName = default(string), int?rawOffset = default(int?))
 {
     DSTSavings      = dSTSavings;
     ID              = id;
     AvailableIDs    = availableIDs;
     DefaultProperty = defaultProperty;
     DisplayName     = displayName;
     RawOffset       = rawOffset;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the JsonDateFormat class.
 /// </summary>
 /// <param name="availableLocales">An array of available
 /// locales.</param>
 /// <param name="lenient">Determines the leniency of the date
 /// format.</param>
 public JsonDateFormat(IList <string> availableLocales = default(IList <string>), double?calendar = default(double?), JsonDateFormat dateInstance = default(JsonDateFormat), JsonDateFormat dateTimeInstance = default(JsonDateFormat), JsonDateFormat instance = default(JsonDateFormat), bool?lenient = default(bool?), JsonNumberFormat numberFormat = default(JsonNumberFormat), JsonDateFormat timeInstance = default(JsonDateFormat), JsonTimeZone timeZone = default(JsonTimeZone))
 {
     AvailableLocales = availableLocales;
     Calendar         = calendar;
     DateInstance     = dateInstance;
     DateTimeInstance = dateTimeInstance;
     Instance         = instance;
     Lenient          = lenient;
     NumberFormat     = numberFormat;
     TimeInstance     = timeInstance;
     TimeZone         = timeZone;
     CustomInit();
 }