public RecipeService()
 {
     this.Id = "";
     this.recipe = null;
     this.pubnub = new Pubnub("pub-c-15409870-ef42-4da1-bc2d-4211862362f3", "sub-c-e6269c5c-3d90-11e4-87bf-02ee2ddab7fe", "sec-c-MjAyYzc5ZjUtMmNmNC00Y2UyLTk4YmItODM2MDljZGRmZTMw");
     this.pubnub.Origin = "pubsub.pubnub.com";
     this.channelName = Channel;
 }
 public RecipeService()
 {
     this.Id            = "";
     this.recipe        = null;
     this.pubnub        = new Pubnub("pub-c-15409870-ef42-4da1-bc2d-4211862362f3", "sub-c-e6269c5c-3d90-11e4-87bf-02ee2ddab7fe", "sec-c-MjAyYzc5ZjUtMmNmNC00Y2UyLTk4YmItODM2MDljZGRmZTMw");
     this.pubnub.Origin = "pubsub.pubnub.com";
     this.channelName   = Channel;
 }
        //The user must already have the subscribe key, so when we give him the channel name, 
        //the method in the client must delete the publish key, to prevent entering text in the channel
        public string GiveChannelName(Guid id)
        {
            this.Id = id.ToString();
            this.recipe = TakeRecipeSteps(id);
            this.channelName = Channel + this.Id + counter;
            counter++;

            return channelName; //to prevent easyer listening different channels
        }
        //The user must already have the subscribe key, so when we give him the channel name,
        //the method in the client must delete the publish key, to prevent entering text in the channel
        public string GiveChannelName(Guid id)
        {
            this.Id          = id.ToString();
            this.recipe      = TakeRecipeSteps(id);
            this.channelName = Channel + this.Id + counter;
            counter++;

            return(channelName); //to prevent easyer listening different channels
        }