Ejemplo n.º 1
0
 public PushSubscription(PushSubscriptionAction action, long accountId, Chain.Index channel)
 {
     Action    = action;
     AccountId = accountId;
     Channel   = channel;
 }
Ejemplo n.º 2
0
 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));
        }