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 GameGroupJoin( string id, FacebookDelegate <IGroupJoinResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("id", id); args.AddString("display", "async"); var call = new CanvasUIMethodCall <IGroupJoinResult>(this, MethodGameGroupJoin, Constants.OnGroupJoinCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void GameGroupCreate( string name, string description, string privacy, FacebookDelegate <IGroupCreateResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("name", name); args.AddString("description", description); args.AddString("privacy", privacy); args.AddString("display", "async"); var call = new CanvasUIMethodCall <IGroupCreateResult>(this, MethodGameGroupCreate, Constants.OnGroupCreateCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void ShareLink( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); args.AddUri("link", contentURL); args.AddString("name", contentTitle); args.AddString("description", contentDescription); args.AddUri("picture", photoURL); var call = new CanvasUIMethodCall <IShareResult>(this, MethodFeed, Constants.OnShareCompleteMethodName); 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) { 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); }
public override void FeedShare( string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate <IShareResult> callback) { MethodArguments args = new MethodArguments(); args.AddString("to", toId); args.AddUri("link", link); args.AddString("name", linkName); args.AddString("caption", linkCaption); args.AddString("description", linkDescription); args.AddUri("picture", picture); args.AddString("source", mediaSource); var call = new CanvasUIMethodCall <IShareResult>(this, MethodFeed, Constants.OnShareCompleteMethodName); call.Callback = callback; call.Call(args); }
public override void ShareLink( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, string hashtag, FacebookDelegate <IShareResult> callback) { if (hashtag != null) { throw new NotImplementedException("ShareLink with hashtag is only implemented for iOS and Android for now. Set it to null."); } MethodArguments args = new MethodArguments(); args.AddUri("link", contentURL); args.AddString("name", contentTitle); args.AddString("description", contentDescription); args.AddUri("picture", photoURL); var call = new CanvasUIMethodCall <IShareResult>(this, MethodFeed, Constants.OnShareCompleteMethodName); call.Callback = callback; call.Call(args); }