public void CreateArticle(CreateArticleModel model, Action callback) { var request = new Request("articles/create", HTTPMethod.Post, model.GetJsonData().ToString(), model.ArticleImage); APIConnection.Conncetion.Request(request, (objects) => { BBSDatas.Add(BBS.CreateData(objects.First())); callback(); }); }
public void CreateBBSData(List <JSONObject> objects) { BBSDatas.Clear(); objects.ForEach((obj) => BBSDatas.Add(BBS.CreateData(obj))); }