/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { if ((this._parent.Holds == item)) { this._parent.Holds = null; return(true); } ITransmissionService transmissionServiceItem = item.As <ITransmissionService>(); if (((transmissionServiceItem != null) && this._parent.Reserves_TransmissionService.Remove(transmissionServiceItem))) { return(true); } IAncillaryService ancillaryServiceItem = item.As <IAncillaryService>(); if (((ancillaryServiceItem != null) && this._parent.Reserves_AncillaryServices.Remove(ancillaryServiceItem))) { return(true); } if ((this._parent.Resells == item)) { this._parent.Resells = null; return(true); } if ((this._parent.Sells == item)) { this._parent.Sells = null; return(true); } return(false); }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { if ((this._parent.DeliveryPointFor == item)) { this._parent.DeliveryPointFor = null; return(true); } ITransmissionService transmissionServiceItem = item.As <ITransmissionService>(); if (((transmissionServiceItem != null) && this._parent.OfferedOn.Remove(transmissionServiceItem))) { return(true); } if ((this._parent.PointOfReceiptFor == item)) { this._parent.PointOfReceiptFor = null; return(true); } if ((this._parent.For == item)) { this._parent.For = null; return(true); } ITransmissionProduct transmissionProductItem = item.As <ITransmissionProduct>(); if (((transmissionProductItem != null) && this._parent.LocatedOn.Remove(transmissionProductItem))) { return(true); } return(false); }
public CommandFactory(ITelegramBotClient botClient, ITransmissionService transmissionService, ITransmissionConfiguration defaultTransmissionConfiguration, SelfUpdatingMessage selfUpdatingMessage) { _botClient = botClient; _transmissionService = transmissionService; _defaultTransmissionConfiguration = defaultTransmissionConfiguration; _selfUpdatingMessage = selfUpdatingMessage; }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { ITransmissionService scheduleForCasted = item.As <ITransmissionService>(); if ((scheduleForCasted != null)) { this._parent.ScheduleFor.Add(scheduleForCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { ITransmissionService transmissionServiceItem = item.As <ITransmissionService>(); if (((transmissionServiceItem != null) && this._parent.ScheduleFor.Remove(transmissionServiceItem))) { return(true); } return(false); }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IServicePoint servicePointItem = item.As <IServicePoint>(); if (((servicePointItem != null) && this._parent.ServicePoint.Remove(servicePointItem))) { return(true); } IAncillaryService ancillaryServiceItem = item.As <IAncillaryService>(); if (((ancillaryServiceItem != null) && this._parent.AncillaryServices.Remove(ancillaryServiceItem))) { return(true); } ILossProfile lossProfileItem = item.As <ILossProfile>(); if (((lossProfileItem != null) && this._parent.For.Remove(lossProfileItem))) { return(true); } ITransmissionService transmissionServiceItem = item.As <ITransmissionService>(); if (((transmissionServiceItem != null) && this._parent.OfferedBy.Remove(transmissionServiceItem))) { return(true); } IFlowgate flowgateItem = item.As <IFlowgate>(); if (((flowgateItem != null) && this._parent.Flowgate.Remove(flowgateItem))) { return(true); } IServiceReservation serviceReservationItem = item.As <IServiceReservation>(); if (((serviceReservationItem != null) && this._parent.SoldBy.Remove(serviceReservationItem))) { return(true); } ITransmissionProduct transmissionProductItem = item.As <ITransmissionProduct>(); if (((transmissionProductItem != null) && this._parent.TransmissionProducts.Remove(transmissionProductItem))) { return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { ITransmissionService providedBy_TransmissionServiceCasted = item.As <ITransmissionService>(); if ((providedBy_TransmissionServiceCasted != null)) { this._parent.ProvidedBy_TransmissionService.Add(providedBy_TransmissionServiceCasted); } IAncillaryService ancillaryServicesCasted = item.As <IAncillaryService>(); if ((ancillaryServicesCasted != null)) { this._parent.AncillaryServices.Add(ancillaryServicesCasted); } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IServicePoint servicePointCasted = item.As <IServicePoint>(); if ((servicePointCasted != null)) { this._parent.ServicePoint.Add(servicePointCasted); } IAncillaryService ancillaryServicesCasted = item.As <IAncillaryService>(); if ((ancillaryServicesCasted != null)) { this._parent.AncillaryServices.Add(ancillaryServicesCasted); } ILossProfile forCasted = item.As <ILossProfile>(); if ((forCasted != null)) { this._parent.For.Add(forCasted); } ITransmissionService offeredByCasted = item.As <ITransmissionService>(); if ((offeredByCasted != null)) { this._parent.OfferedBy.Add(offeredByCasted); } IFlowgate flowgateCasted = item.As <IFlowgate>(); if ((flowgateCasted != null)) { this._parent.Flowgate.Add(flowgateCasted); } IServiceReservation soldByCasted = item.As <IServiceReservation>(); if ((soldByCasted != null)) { this._parent.SoldBy.Add(soldByCasted); } ITransmissionProduct transmissionProductsCasted = item.As <ITransmissionProduct>(); if ((transmissionProductsCasted != null)) { this._parent.TransmissionProducts.Add(transmissionProductsCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { ITransmissionService transmissionServiceItem = item.As <ITransmissionService>(); if (((transmissionServiceItem != null) && this._parent.ProvidedBy_TransmissionService.Remove(transmissionServiceItem))) { return(true); } IAncillaryService ancillaryServiceItem = item.As <IAncillaryService>(); if (((ancillaryServiceItem != null) && this._parent.AncillaryServices.Remove(ancillaryServiceItem))) { return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.DeliveryPointFor == null)) { IServicePoint deliveryPointForCasted = item.As <IServicePoint>(); if ((deliveryPointForCasted != null)) { this._parent.DeliveryPointFor = deliveryPointForCasted; return; } } ITransmissionService offeredOnCasted = item.As <ITransmissionService>(); if ((offeredOnCasted != null)) { this._parent.OfferedOn.Add(offeredOnCasted); } if ((this._parent.PointOfReceiptFor == null)) { IServicePoint pointOfReceiptForCasted = item.As <IServicePoint>(); if ((pointOfReceiptForCasted != null)) { this._parent.PointOfReceiptFor = pointOfReceiptForCasted; return; } } if ((this._parent.For == null)) { ITransmissionCorridor forCasted = item.As <ITransmissionCorridor>(); if ((forCasted != null)) { this._parent.For = forCasted; return; } } ITransmissionProduct locatedOnCasted = item.As <ITransmissionProduct>(); if ((locatedOnCasted != null)) { this._parent.LocatedOn.Add(locatedOnCasted); } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.Holds == null)) { IMarketer holdsCasted = item.As <IMarketer>(); if ((holdsCasted != null)) { this._parent.Holds = holdsCasted; return; } } ITransmissionService reserves_TransmissionServiceCasted = item.As <ITransmissionService>(); if ((reserves_TransmissionServiceCasted != null)) { this._parent.Reserves_TransmissionService.Add(reserves_TransmissionServiceCasted); } IAncillaryService reserves_AncillaryServicesCasted = item.As <IAncillaryService>(); if ((reserves_AncillaryServicesCasted != null)) { this._parent.Reserves_AncillaryServices.Add(reserves_AncillaryServicesCasted); } if ((this._parent.Resells == null)) { IMarketer resellsCasted = item.As <IMarketer>(); if ((resellsCasted != null)) { this._parent.Resells = resellsCasted; return; } } if ((this._parent.Sells == null)) { ITransmissionProvider sellsCasted = item.As <ITransmissionProvider>(); if ((sellsCasted != null)) { this._parent.Sells = sellsCasted; return; } } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { ITransmissionPath transmissionPathItem = item.As <ITransmissionPath>(); if (((transmissionPathItem != null) && this._parent.LocationFor.Remove(transmissionPathItem))) { return(true); } if ((this._parent.TransmissionProvider == item)) { this._parent.TransmissionProvider = null; return(true); } ITransmissionService transmissionServiceItem = item.As <ITransmissionService>(); if (((transmissionServiceItem != null) && this._parent.Offers.Remove(transmissionServiceItem))) { return(true); } return(false); }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { ITransmissionPath locationForCasted = item.As <ITransmissionPath>(); if ((locationForCasted != null)) { this._parent.LocationFor.Add(locationForCasted); } if ((this._parent.TransmissionProvider == null)) { ITransmissionProvider transmissionProviderCasted = item.As <ITransmissionProvider>(); if ((transmissionProviderCasted != null)) { this._parent.TransmissionProvider = transmissionProviderCasted; return; } } ITransmissionService offersCasted = item.As <ITransmissionService>(); if ((offersCasted != null)) { this._parent.Offers.Add(offersCasted); } }
protected TransmissionCommandBase(ITelegramBotClient botClient, ITransmissionService transmissionService, ITransmissionConfiguration defaultTransmissionConfiguration) : base(botClient) { _transmissionService = transmissionService; _defaultTransmissionConfiguration = defaultTransmissionConfiguration; }
public CommandsController(ITransmissionService transmission) { this.TransmissionService = transmission; }
public VideoController(ITransmissionService service) { _service = service; }
public MovieTorrentController(ITransmissionService service) { _service = service; }
public AddCommand(ITelegramBotClient botClient, ITransmissionService transmissionService, ITransmissionConfiguration defaultTransmissionConfiguration) : base(botClient, transmissionService, defaultTransmissionConfiguration) { }
public TransController(ITransmissionService service) { _tr = service; }
public StatusCommand(ITelegramBotClient botClient, ITransmissionService transmissionService, ITransmissionConfiguration defaultTransmissionConfiguration, SelfUpdatingMessage selfUpdatingMessage) : base(botClient, transmissionService, defaultTransmissionConfiguration) { _selfUpdatingMessage = selfUpdatingMessage; }
public TransmissionController(ITransmissionService service, IMapper mapper) { _service = service; _mapper = mapper; }
public TransmissionsController(ITransmissionService transmissionService) { _transmissionService = transmissionService; }
public HangfireSetup(ITransmissionService service) { _service = service; }
public TransmissionAppService(ITransmissionService transmissionService) : base(transmissionService) { _TransmissionService = transmissionService; }
public InfoController(ITransmissionService transmission) { this.TransmissionService = transmission; }
public TransmissionController(ITransmissionService transmissionService, ITransmissionEventTypeService transmissionEventTypeService) { this.transmissionService = transmissionService; this.transmissionEventTypeService = transmissionEventTypeService; }
public WebhookController(ITransmissionService transmission) { this.TransmissionService = transmission; }
public TransmissionHub(ITransmissionHubService transmissionHubService, ITransmissionService transmissionService) { this.transmissionHubService = transmissionHubService; this.transmissionService = transmissionService; }