当前位置: 首页>>代码示例>>C#>>正文


C# RoomData.getId方法代码示例

本文整理汇总了C#中RoomData.getId方法的典型用法代码示例。如果您正苦于以下问题:C# RoomData.getId方法的具体用法?C# RoomData.getId怎么用?C# RoomData.getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RoomData的用法示例。


在下文中一共展示了RoomData.getId方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onUserJoinedRoom

        public void onUserJoinedRoom(RoomData eventObj, String username)
        {
            _page.UpdateStatus(username + " joined " + eventObj.getId());
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                _page.UnLockGameboard();
                _page.UpdateStatus("Click on any block to start Game");

            });
        }
开发者ID:AtulSBiet,项目名称:Tutorials_WP_7_8,代码行数:10,代码来源:NotificationListener.cs

示例2: onUserChangeRoomProperty

 public void onUserChangeRoomProperty(RoomData roomData, string sender, Dictionary<String, Object> properties)
 {
     _page.showResult("Notification for User Changed Room Propert received");
     _page.showResult(roomData.getId());
     _page.showResult(sender);
     foreach (KeyValuePair<string, object> entry in properties)
     {
         _page.showResult("KEY:" + entry.Key);
         _page.showResult("VALUE:" + entry.Value.ToString());
     }
 }
开发者ID:shephertz,项目名称:App42_AppWarp_Windows_Sample,代码行数:11,代码来源:NotificationListener.cs

示例3: onUserChangeRoomProperty

 public void onUserChangeRoomProperty(RoomData roomData, string sender, Dictionary<String, System.Object> properties)
 {
     Log("Notification for User Changed Room Property received");
     Log(roomData.getId());
     Log(sender);
     foreach (KeyValuePair<String, System.Object> entry in properties)
     {
         Log("KEY:" + entry.Key);
         Log("VALUE:" + entry.Value.ToString());
     }
 }
开发者ID:RajeevRShephertz,项目名称:UnityConnectionResiliencySample,代码行数:11,代码来源:Listener.cs

示例4: onUserLeftRoom

 public void onUserLeftRoom(RoomData eventObj, String username)
 {
     if (eventObj.getId().Equals(GlobalContext.GameRoomId))
     {
         if (!GlobalContext.localUsername.Equals(username))
         {
             if(OpponentLeftRoom!=null)
                 Deployment.Current.Dispatcher.BeginInvoke(new UICallback(OpponentLeftRoom));
         }
     }
 }
开发者ID:rahulpshephertz,项目名称:CatapultWar_TurnBased,代码行数:11,代码来源:NotificationListener.cs

示例5: onUserJoinedRoom

 public void onUserJoinedRoom(RoomData eventObj, String username)
 {
     _page.showResult(username + " joined " + eventObj.getId());
 }
开发者ID:shephertz,项目名称:App42_AppWarp_Windows_Sample,代码行数:4,代码来源:NotificationListener.cs

示例6: onRoomCreated

 //NotifyListener
 public void onRoomCreated(RoomData eventObj)
 {
     notifications+="onRoomCreated "+eventObj.getName()+" destroyed with id "+eventObj.getId()+"\n";
     Debug.Log ("onRoomCreated");
 }
开发者ID:shephertz,项目名称:AppWarpUnity,代码行数:6,代码来源:AppWarpManager.cs

示例7: onUserLeftRoom

 public void onUserLeftRoom(RoomData eventObj, String username)
 {
     if (eventObj.getId().Equals(GlobalContext.GameRoomId))
     {
         if (!GlobalContext.localUsername.Equals(username))
         {
             Deployment.Current.Dispatcher.BeginInvoke(delegate() { App.g_QuizPageListener.OpponentLeftRoom(); });
         }
         WarpClient.GetInstance().Disconnect();
     }
 }
开发者ID:rahulpshephertz,项目名称:QuizUp-AppWarpS2,代码行数:11,代码来源:NotificationListener.cs


注:本文中的RoomData.getId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。