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


C# Roar类代码示例

本文整理汇总了C#中Roar的典型用法代码示例。如果您正苦于以下问题:C# Roar类的具体用法?C# Roar怎么用?C# Roar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Fetch

 public void Fetch(Roar.Callback< IDictionary<string,Foo> > callback)
 {
     Hashtable data = new Hashtable();
     data.Add("board_id", boardId);
     data.Add("page", page.ToString());
     dataStore.ranking.Fetch(callback, data);
 }
开发者ID:QuiVeeGlobal,项目名称:sdk-unity,代码行数:7,代码来源:Ranking.cs

示例2: onShopFetch

 static void onShopFetch( Roar.CallbackInfo< IDictionary<string, Roar.DomainObjects.ShopEntry> > info )
 {
     Debug.Log( "onShopFetch Called" );
     Debug.Log(info);
     Debug.Log(info.code);
     Debug.Log(info.msg);
     Debug.Log(info.data);
 }
开发者ID:QuiVeeGlobal,项目名称:sdk-unity,代码行数:8,代码来源:RoarShopTest.cs

示例3: onShopFetch

 static void onShopFetch( Roar.CallbackInfo info )
 {
     Debug.Log( "onShopFetch Called" );
     Debug.Log(info);
     Debug.Log(info.code);
     Debug.Log(info.msg);
     Debug.Log(info.d);
 }
开发者ID:yorrickm,项目名称:sdk-unity,代码行数:8,代码来源:RoarShopTest.cs

示例4: LoadChangedLeaderboard

 static void LoadChangedLeaderboard(Roar.WebObjects.Leaderboards.ViewResponse response)
 {
     foreach(LeaderboardEntry e in response.leaderboard_data.entries)
     {
         if(!playerIDleaderboardDict.ContainsKey(e.player_id))
         {
             playerIDleaderboardDict.Add(e.player_id, e.properties);
         }
     }
 }
开发者ID:joaokucera,项目名称:sdk-unity,代码行数:10,代码来源:PlayerDictionary.cs

示例5: onLogin

 static void onLogin( Roar.CallbackInfo info )
 {
     Debug.Log( "onLogin Called" );
     Debug.Log(info);
     Debug.Log(info.code);
     Debug.Log(info.msg);
     Debug.Log(info.d);
     IRoar roar = DefaultRoar.Instance;
     roar.Shop.Fetch( onShopFetch );
 }
开发者ID:yorrickm,项目名称:sdk-unity,代码行数:10,代码来源:RoarShopTest.cs

示例6: onLogin

 static void onLogin( Roar.CallbackInfo< Roar.WebObjects.User.LoginResponse > info )
 {
     Debug.Log( "onLogin Called" );
     Debug.Log(info);
     Debug.Log(info.code);
     Debug.Log(info.msg);
     Debug.Log(info.data);
     IRoar roar = DefaultRoar.Instance;
     roar.Shop.Fetch( onShopFetch );
 }
开发者ID:QuiVeeGlobal,项目名称:sdk-unity,代码行数:10,代码来源:RoarShopTest.cs

示例7: AddToCache

        /**
        * Fetches details about `items` array and adds to item Cache Model
        */
        public bool AddToCache(ArrayList items, Roar.Callback cb=null)
        {
            ArrayList batch = ItemsNotInCache (items);

            // Make the call if there are new items to fetch,
            // passing the `batch` list and persisting the Model data (adding)
            // Returns `true` if items are to be added, `false` if nothing to add
            if (batch.Count > 0) {
                var keysAsJSON = Roar.Json.ArrayToJSON (batch) as string;
                Hashtable args = new Hashtable ();
                args ["item_ikeys"] = keysAsJSON;
                Fetch (cb, args, true);
                return true;
            } else
                return false;
        }
开发者ID:yorrickm,项目名称:sdk-unity,代码行数:19,代码来源:ItemCache.cs

示例8: _set

 public void _set( Roar.WebObjects.User.SetArguments args, ZWebAPI.Callback<Roar.WebObjects.User.SetResponse> cb)
 {
     api.MakeCall ("user/set", args.ToHashtable(), new CallbackBridge<Roar.WebObjects.User.SetResponse>(cb, set_response_parser), true);
 }
开发者ID:joaokucera,项目名称:sdk-unity,代码行数:4,代码来源:WebAPI.cs

示例9: view

 public void view( Roar.WebObjects.User.ViewArguments args, ZWebAPI.Callback<Roar.WebObjects.User.ViewResponse> cb)
 {
     api.MakeCall ("user/view", args.ToHashtable(), new CallbackBridge<Roar.WebObjects.User.ViewResponse>(cb, view_response_parser), true);
 }
开发者ID:joaokucera,项目名称:sdk-unity,代码行数:4,代码来源:WebAPI.cs

示例10: GetAchievement

 public Hashtable GetAchievement(string ikey, Roar.Callback callback)
 {
     if (callback != null)
         callback (new Roar.CallbackInfo<object> (dataStore.achievements.Get (ikey)));
     return dataStore.achievements.Get (ikey);
 }
开发者ID:yorrickm,项目名称:sdk-unity,代码行数:6,代码来源:Achievements.cs

示例11: OnRoarPropertiesFetched

 void OnRoarPropertiesFetched(Roar.CallbackInfo< IDictionary<string,Roar.DomainObjects.PlayerAttribute> > info)
 {
     networkActionInProgress = false;
     if (OnFullyLoggedIn != null) OnFullyLoggedIn();
 }
开发者ID:QuiVeeGlobal,项目名称:sdk-unity,代码行数:5,代码来源:RoarLoginWidget.cs

示例12: OnRoarFetchTasksComplete

 void OnRoarFetchTasksComplete( Roar.CallbackInfo< IDictionary<string,Roar.DomainObjects.Task> > data )
 {
     isFetching = false;
 }
开发者ID:QuiVeeGlobal,项目名称:sdk-unity,代码行数:4,代码来源:RoarLoginWidget.cs

示例13: push

 public void push( Roar.WebObjects.Urbanairship.PushArguments args, ZWebAPI.Callback<Roar.WebObjects.Urbanairship.PushResponse> cb)
 {
     api.MakeCall ("urbanairship/push", args.ToHashtable(), new CallbackBridge<Roar.WebObjects.Urbanairship.PushResponse>(cb, push_response_parser), true);
 }
开发者ID:joaokucera,项目名称:sdk-unity,代码行数:4,代码来源:WebAPI.cs

示例14: ios_register

 public void ios_register( Roar.WebObjects.Urbanairship.IosRegisterArguments args, ZWebAPI.Callback<Roar.WebObjects.Urbanairship.IosRegisterResponse> cb)
 {
     api.MakeCall ("urbanairship/ios_register", args.ToHashtable(), new CallbackBridge<Roar.WebObjects.Urbanairship.IosRegisterResponse>(cb, ios_register_response_parser), true);
 }
开发者ID:joaokucera,项目名称:sdk-unity,代码行数:4,代码来源:WebAPI.cs

示例15: start

 public void start( Roar.WebObjects.Tasks.StartArguments args, ZWebAPI.Callback<Roar.WebObjects.Tasks.StartResponse> cb)
 {
     api.MakeCall ("tasks/start", args.ToHashtable(), new CallbackBridge<Roar.WebObjects.Tasks.StartResponse>(cb, start_response_parser), true);
 }
开发者ID:joaokucera,项目名称:sdk-unity,代码行数:4,代码来源:WebAPI.cs


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