Ejemplo n.º 1
0
 public ImporterForwardingInfo(Action <DateTime, ImporterForwardingInfo, RoamingNetwork_Id, RoamingNetwork_Id> OnChangedCallback,
                               IEnumerable <EVSEOperator> EVSEOperators,
                               ChargingStation_Id StationId       = null,
                               String StationName                 = "",
                               String StationServiceTag           = "",
                               Address StationAddress             = null,
                               GeoCoordinate StationGeoCoordinate = null,
                               IEnumerable <EVSE_Id> EVSEIds      = null,
                               String PhoneNumber                 = null,
                               Timestamped <ChargingStationAdminStatusType>?AdminStatus = null,
                               DateTime?Created     = null,
                               Boolean OutOfService = false,
                               EVSEOperator ForwardedToEVSEOperator = null)
 {
     this._OnForwardingChanged     = OnChangedCallback;
     this._EVSEOperators           = EVSEOperators;
     this._EVSEIds                 = EVSEIds != null ? new HashSet <EVSE_Id>(EVSEIds) : new HashSet <EVSE_Id>();
     this._StationId               = StationId != null ? StationId                     : ChargingStation_Id.Create(EVSEIds);
     this.StationName              = StationName;
     this.StationServiceTag        = StationServiceTag;
     this.StationAddress           = StationAddress;
     this.StationGeoCoordinate     = StationGeoCoordinate != null ? StationGeoCoordinate          : new GeoCoordinate(new Latitude(0), new Longitude(0));
     this._AdminStatus             = AdminStatus != null ? AdminStatus.Value             : new Timestamped <ChargingStationAdminStatusType>(ChargingStationAdminStatusType.Operational);
     this._PhoneNumber             = PhoneNumber;
     this._Created                 = Created != null ? Created.Value                 : DateTime.Now;
     this._OutOfService            = OutOfService;
     this._LastTimeSeen            = _Created;
     this._ForwardedToEVSEOperator = ForwardedToEVSEOperator;
 }
Ejemplo n.º 2
0
 public ImporterForwardingInfo(Action <DateTime, ImporterForwardingInfo, RoamingNetwork_Id?, RoamingNetwork_Id?> OnChangedCallback,
                               IEnumerable <ChargingStationOperator> ChargingStationOperators,
                               ChargingStation_Id?StationId       = null,
                               String StationName                 = "",
                               String StationServiceTag           = "",
                               Address StationAddress             = null,
                               GeoCoordinate?StationGeoCoordinate = null,
                               IEnumerable <EVSE_Id> EVSEIds      = null,
                               String PhoneNumber                 = null,
                               Timestamped <ChargingStationAdminStatusTypes>?AdminStatus = null,
                               DateTime?Created     = null,
                               Boolean OutOfService = false,
                               ChargingStationOperator ForwardedToOperator = null)
 {
     this._OnForwardingChanged     = OnChangedCallback;
     this.ChargingStationOperators = ChargingStationOperators;
     this._EVSEIds             = EVSEIds != null ? new HashSet <EVSE_Id>(EVSEIds) : new HashSet <EVSE_Id>();
     this.StationId            = StationId.HasValue            ? StationId.Value               : ChargingStation_Id.Create(EVSEIds).Value;
     this.StationName          = StationName;
     this.StationServiceTag    = StationServiceTag;
     this.StationAddress       = StationAddress;
     this.StationGeoCoordinate = StationGeoCoordinate;
     this._AdminStatus         = AdminStatus != null ? AdminStatus.Value             : new Timestamped <ChargingStationAdminStatusTypes>(ChargingStationAdminStatusTypes.Operational);
     this.PhoneNumber          = PhoneNumber;
     this.Created      = Created != null ? Created.Value                 : DateTime.UtcNow;
     this.OutOfService = OutOfService;
     this.LastTimeSeen = this.Created;
     this._ForwardedToChargingStationOperator = ForwardedToOperator;
 }