public WeatherRequestWWO(WeatherInput future, WeatherInput past = null, RefreshType reftype = RefreshType.FullRefresh)
 {
     m_info_future     = future;
     m_info_historical = past;
     m_reftype         = reftype;
     m_weatherinfo     = new WeatherNullPtr();//This is a NUll PTr Pattern so that there would always be a next actor and not a null pointer
 }
Beispiel #2
0
 public WeatherController(WeatherInput future, WeatherInput past = null, RefreshType reftype = RefreshType.FullRefresh)
 {
     m_info_future     = future;
     m_info_historical = past;
     m_reftype         = reftype;
     BuildResponsibilityChain();
 }
 public WeatherRequestZOWA(WeatherInput future, WeatherInput past = null, RefreshType reftype = RefreshType.FullRefresh)
 {
     m_info_future     = future;
     m_info_historical = past;
     m_reftype         = reftype;
     m_weatherinfo     = new WeatherNullPtr();
 }
Beispiel #4
0
 public void SetInput(WeatherInput future, WeatherInput past = null, RefreshType reftype = RefreshType.FullRefresh)
 {
     m_info_future     = future;
     m_info_historical = past;
     m_refresh         = reftype;
 }
Beispiel #5
0
        public string ToString(WeatherInput key)
        {
            string h_key = key.query + key.num_of_days.ToString();

            return(h_key);
        }