public PushSubscription(PushSubscriptionAction action, long accountId, Chain.Index channel) { Action = action; AccountId = accountId; Channel = channel; }
public PushSubscription(Unpacker unpacker) { Action = (PushSubscriptionAction)unpacker.UnpackByte(); unpacker.Unpack(out AccountId); Channel = new Chain.Index(unpacker); }
public async Task <ErrorBase> TrySubscribeForPushes(PushSubscriptionAction action, string playerId, string watchedUser) { var model = new PushNotificationsModel(User.UserInfo, playerId, watchedUser, action == PushSubscriptionAction.Subscribe); return(await TrySubscribeForPushes(model)); }