本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
}
}
示例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 );
}
示例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 );
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例11: OnRoarPropertiesFetched
void OnRoarPropertiesFetched(Roar.CallbackInfo< IDictionary<string,Roar.DomainObjects.PlayerAttribute> > info)
{
networkActionInProgress = false;
if (OnFullyLoggedIn != null) OnFullyLoggedIn();
}
示例12: OnRoarFetchTasksComplete
void OnRoarFetchTasksComplete( Roar.CallbackInfo< IDictionary<string,Roar.DomainObjects.Task> > data )
{
isFetching = false;
}
示例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);
}
示例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);
}
示例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);
}