using System;
using System.Collections.Generic;
#if WASM
   using CommonHelpers.WASM;
   using BookRegistry.Client.DB;
namespace BookRegistry.Client {
#else // !WASM:
   using CommonHelpers;
   using BookRegistry.Server.DB;
namespace BookRegistry.Server {
#endif // !WASM
//==================================================================================================

public class WeatherForecast_Response: GeneralApiResponse<ForecastSummary_Item>
{
   public WeatherForecast_Response() {}
   public WeatherForecast_Response(GeneralApiResponse simpleResponse)
   : base( simpleResponse ) {} // This constructor may be used in automatic token(s) refresh.
#if SERVER
   internal WeatherForecast_Response( HSPCommandResult spr,
                                      List<ForecastSummary_Item> summaries )
   : base( spr, summaries ) {}
#endif // SERVER
} // WeatherForecast_Response

//==================================================================================================

public class GetWeatherForecast_Args: ApiArgumentsBase
{
   public DateTime DateFrom {
      get => Value( NDateFrom );
      set => NDateFrom = value; } internal DateTime? NDateFrom;
   public bool WithTestDelay;
   public bool SimulateError;
} // GetWeatherForecast_Args

//==================================================================================================
} // BookRegistry.Client/Server
