public PluginCommandResponseMessage Execute(string args) { var subscriber = new Subscriber(); SubscriberRepository.AddSubscriber(subscriber); return new PluginCommandResponseMessage {PluginCommandStatus = PluginCommandStatus.Succeed, ResponseData = subscriber.Serialize()}; }
public static void AddSubscriber(Subscriber subscriber) { _subscribers.Add(subscriber.SubscriberId, subscriber); }