private void PayImpl( string product, string productId, string action, int quantity, int?quantityMin, int?quantityMax, string requestId, string pricepointId, string testCurrency, FacebookDelegate <IPayResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("product", product); args.AddString("product_id", productId); args.AddString("action", action); args.AddPrimative("quantity", quantity); args.AddNullablePrimitive("quantity_min", quantityMin); args.AddNullablePrimitive("quantity_max", quantityMax); args.AddString("request_id", requestId); args.AddString("pricepoint_id", pricepointId); args.AddString("test_currency", testCurrency); var call = new CanvasUIMethodCall <IPayResult>(this, MethodPay, Constants.OnPayCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void AppRequest(string message, OGActionType?actionType, string objectId, IEnumerable <string> to, IEnumerable <object> filters, IEnumerable <string> excludeIds, int?maxRecipients, string data, string title, FacebookDelegate <IAppRequestResult> callback) { base.ValidateAppRequestArgs(message, actionType, objectId, to, filters, excludeIds, maxRecipients, data, title, callback); MethodArguments methodArguments = new MethodArguments(); methodArguments.AddString("message", message); methodArguments.AddNullablePrimitive <OGActionType>("action_type", actionType); methodArguments.AddString("object_id", objectId); methodArguments.AddCommaSeparatedList("to", to); if (filters != null && filters.Any <object>()) { string text = filters.First <object>() as string; if (text != null) { methodArguments.AddString("filters", text); } } methodArguments.AddNullablePrimitive <int>("max_recipients", maxRecipients); methodArguments.AddString("data", data); methodArguments.AddString("title", title); new AndroidFacebook.JavaMethodCall <IAppRequestResult>(this, "AppRequest") { Callback = callback }.Call(methodArguments); }
public override void AppRequest( string message, OGActionType?actionType, string objectId, IEnumerable <string> to, IEnumerable <object> filters, IEnumerable <string> excludeIds, int?maxRecipients, string data, string title, FacebookDelegate <IAppRequestResult> callback) { this.ValidateAppRequestArgs( message, actionType, objectId, to, filters, excludeIds, maxRecipients, data, title, callback); MethodArguments args = new MethodArguments(); args.AddString("message", message); args.AddNullablePrimitive("action_type", actionType); args.AddString("object_id", objectId); args.AddCommaSeparatedList("to", to); if (filters != null && filters.Any()) { string mobileFilter = filters.First() as string; if (mobileFilter != null) { args.AddString("filters", mobileFilter); } } args.AddNullablePrimitive("max_recipients", maxRecipients); args.AddString("data", data); args.AddString("title", title); var appRequestCall = new JavaMethodCall <IAppRequestResult>(this, "AppRequest"); appRequestCall.Callback = callback; appRequestCall.Call(args); }
private void PayImpl(string product, string action, int quantity, int?quantityMin, int?quantityMax, string requestId, string pricepointId, string testCurrency, FacebookDelegate <IPayResult> callback) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddString("product", product); methodArguments.AddString("action", action); methodArguments.AddPrimative <int>("quantity", quantity); methodArguments.AddNullablePrimitive <int>("quantity_min", quantityMin); methodArguments.AddNullablePrimitive <int>("quantity_max", quantityMax); methodArguments.AddString("request_id", requestId); methodArguments.AddString("pricepoint_id", pricepointId); methodArguments.AddString("test_currency", testCurrency); new CanvasFacebook.CanvasUIMethodCall <IPayResult>(this, "pay", "OnPayComplete") { Callback = callback }.Call(methodArguments); }
public override void AppEventsLogEvent(string logEvent, float?valueToSum, Dictionary <string, object> parameters) { MethodArguments methodArguments = new MethodArguments(); methodArguments.AddString("logEvent", logEvent); methodArguments.AddNullablePrimitive <float>("valueToSum", valueToSum); methodArguments.AddDictionary("parameters", parameters); AndroidFacebook.JavaMethodCall <IResult> javaMethodCall = new AndroidFacebook.JavaMethodCall <IResult>(this, "LogAppEvent"); javaMethodCall.Call(methodArguments); }
public override void AppEventsLogEvent( string logEvent, float?valueToSum, Dictionary <string, object> parameters) { MethodArguments args = new MethodArguments(); args.AddString("logEvent", logEvent); args.AddNullablePrimitive("valueToSum", valueToSum); args.AddDictionary("parameters", parameters); var appEventcall = new JavaMethodCall <IResult>(this, "LogAppEvent"); appEventcall.Call(args); }
public override void AppRequest(string message, OGActionType?actionType, string objectId, IEnumerable <string> to, IEnumerable <object> filters, IEnumerable <string> excludeIds, int?maxRecipients, string data, string title, FacebookDelegate <IAppRequestResult> callback) { base.ValidateAppRequestArgs(message, actionType, objectId, to, filters, excludeIds, maxRecipients, data, title, callback); MethodArguments methodArguments = new MethodArguments(); methodArguments.AddString("message", message); methodArguments.AddCommaSeparatedList("to", to); methodArguments.AddString("action_type", (!actionType.HasValue) ? null : actionType.ToString()); methodArguments.AddString("object_id", objectId); methodArguments.AddList <object>("filters", filters); methodArguments.AddList <string>("exclude_ids", excludeIds); methodArguments.AddNullablePrimitive <int>("max_recipients", maxRecipients); methodArguments.AddString("data", data); methodArguments.AddString("title", title); new CanvasFacebook.CanvasUIMethodCall <IAppRequestResult>(this, "apprequests", "OnAppRequestsComplete") { Callback = callback }.Call(methodArguments); }
public override void AppRequest( string message, OGActionType?actionType, string objectId, IEnumerable <string> to, IEnumerable <object> filters, IEnumerable <string> excludeIds, int?maxRecipients, string data, string title, FacebookDelegate <IAppRequestResult> callback) { this.ValidateAppRequestArgs( message, actionType, objectId, to, filters, excludeIds, maxRecipients, data, title, callback); MethodArguments args = new MethodArguments(); args.AddString("message", message); args.AddCommaSeparatedList("to", to); args.AddString("action_type", actionType != null ? actionType.ToString() : null); args.AddString("object_id", objectId); args.AddList("filters", filters); args.AddList("exclude_ids", excludeIds); args.AddNullablePrimitive("max_recipients", maxRecipients); args.AddString("data", data); args.AddString("title", title); var call = new CanvasUIMethodCall <IAppRequestResult>(this, MethodAppRequests, Constants.OnAppRequestsCompleteMethodName); call.Callback = callback; call.Call(args); }