s'inscrire au sujet /topic/jobs quand on est presta
This commit is contained in:
parent
76ceddecdf
commit
79e5eaeece
1 changed files with 6 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ using Android.Gms.Gcm.Iid;
|
||||||
using Android.OS;
|
using Android.OS;
|
||||||
using Android;
|
using Android;
|
||||||
using ZicMoove.Settings;
|
using ZicMoove.Settings;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace ZicMoove.Droid
|
namespace ZicMoove.Droid
|
||||||
{
|
{
|
||||||
|
|
@ -101,11 +102,13 @@ namespace ZicMoove.Droid
|
||||||
{
|
{
|
||||||
var pubSub = GcmPubSub.GetInstance(this);
|
var pubSub = GcmPubSub.GetInstance(this);
|
||||||
pubSub.Subscribe(token, "/topics/global", null);
|
pubSub.Subscribe(token, "/topics/global", null);
|
||||||
|
if (MainSettings.CurrentUser.Roles.Contains("Performer"))
|
||||||
|
// TODO add activity codes in the bundle
|
||||||
|
pubSub.Subscribe(token, "/topics/jobs", null);
|
||||||
// TODO if a Activity is specified,
|
// TODO if a Activity is specified,
|
||||||
// and general annonces in this activity are accepted:
|
// and general annonces in this activity are accepted:
|
||||||
//
|
|
||||||
// pubSub.Subscribe(token, "/topics/jobs/"+ActivityCode, null);
|
// pubSub.Subscribe(token, "/topics/jobs/"+ActivityCode, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue