Exemplo n.º 1
0
    private void  fromJSONCalculatedDateAndTimes(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field CalculatedDateAndTimes of SunriseSunsetTimeInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <DateAndOrTimeJSON> vector_CalculatedDateAndTimes1 = new List <DateAndOrTimeJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            DateAndOrTimeJSON convert_classy = DateAndOrTimeJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_CalculatedDateAndTimes1.Add(convert_classy);
        }
        initCalculatedDateAndTimes();
        for (int num1 = 0; num1 < vector_CalculatedDateAndTimes1.Count; ++num1)
        {
            appendCalculatedDateAndTimes(vector_CalculatedDateAndTimes1[num1]);
        }
        for (int num1 = 0; num1 < vector_CalculatedDateAndTimes1.Count; ++num1)
        {
        }
    }
Exemplo n.º 2
0
    private void  fromJSONLastDateAndOrTime(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        DateAndOrTimeJSON convert_classy = DateAndOrTimeJSON.from_json(json_value, ignore_extras, true);

        setLastDateAndOrTime(convert_classy);
    }
Exemplo n.º 3
0
 public void setResponseGameTime(DateAndOrTimeJSON new_value)
 {
     if (flagHasResponseGameTime)
     {
     }
     flagHasResponseGameTime = true;
     storeResponseGameTime   = new_value;
 }
Exemplo n.º 4
0
 public void setLastDateAndOrTime(DateAndOrTimeJSON new_value)
 {
     if (flagHasLastDateAndOrTime)
     {
     }
     flagHasLastDateAndOrTime = true;
     storeLastDateAndOrTime   = new_value;
 }
Exemplo n.º 5
0
 public void setSourceDateAndTime(DateAndOrTimeJSON new_value)
 {
     if (flagHasSourceDateAndTime)
     {
     }
     flagHasSourceDateAndTime = true;
     storeSourceDateAndTime   = new_value;
 }
Exemplo n.º 6
0
 public void setStartDateAndOrTime(DateAndOrTimeJSON new_value)
 {
     if (flagHasStartDateAndOrTime)
     {
     }
     flagHasStartDateAndOrTime = true;
     storeStartDateAndOrTime   = new_value;
 }
 public void setPoint(DateAndOrTimeJSON new_value)
 {
     if (flagHasPoint)
     {
     }
     flagHasPoint = true;
     storePoint   = new_value;
 }
Exemplo n.º 8
0
 public void setEndDateAndTime(DateAndOrTimeJSON new_value)
 {
     if (flagHasEndDateAndTime)
     {
     }
     flagHasEndDateAndTime = true;
     storeEndDateAndTime   = new_value;
 }
Exemplo n.º 9
0
 public void setNow(DateAndOrTimeJSON new_value)
 {
     if (flagHasNow)
     {
     }
     flagHasNow = true;
     storeNow   = new_value;
 }
Exemplo n.º 10
0
 public void setInstant(DateAndOrTimeJSON new_value)
 {
     if (flagHasInstant)
     {
     }
     flagHasInstant = true;
     storeInstant   = new_value;
 }
 public void setDestinationDate(DateAndOrTimeJSON new_value)
 {
     if (flagHasDestinationDate)
     {
     }
     flagHasDestinationDate = true;
     storeDestinationDate   = new_value;
 }
Exemplo n.º 12
0
 public void setClosingCeremonyDate(DateAndOrTimeJSON new_value)
 {
     if (flagHasClosingCeremonyDate)
     {
     }
     flagHasClosingCeremonyDate = true;
     storeClosingCeremonyDate   = new_value;
 }
Exemplo n.º 13
0
 public void setClientLocalTime(DateAndOrTimeJSON new_value)
 {
     if (flagHasClientLocalTime)
     {
     }
     flagHasClientLocalTime = true;
     storeClientLocalTime   = new_value;
 }
Exemplo n.º 14
0
 public void setOpeningCeremonyDate(DateAndOrTimeJSON new_value)
 {
     if (flagHasOpeningCeremonyDate)
     {
     }
     flagHasOpeningCeremonyDate = true;
     storeOpeningCeremonyDate   = new_value;
 }
Exemplo n.º 15
0
 public void setBirthday(DateAndOrTimeJSON new_value)
 {
     if (flagHasBirthday)
     {
     }
     flagHasBirthday = true;
     storeBirthday   = new_value;
 }
 public void setLocal(DateAndOrTimeJSON new_value)
 {
     if (flagHasLocal)
     {
     }
     flagHasLocal = true;
     storeLocal   = new_value;
 }
 public void setUTC(DateAndOrTimeJSON new_value)
 {
     if (flagHasUTC)
     {
     }
     flagHasUTC = true;
     storeUTC   = new_value;
 }
Exemplo n.º 18
0
 public void appendCalculatedDateAndTimes(DateAndOrTimeJSON to_append)
 {
     if (!flagHasCalculatedDateAndTimes)
     {
         flagHasCalculatedDateAndTimes = true;
         storeCalculatedDateAndTimes.Clear();
     }
     Debug.Assert(flagHasCalculatedDateAndTimes);
     storeCalculatedDateAndTimes.Add(to_append);
 }