Example #1
0
    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();
        });
    }
Example #2
0
 public void CreateBBSData(List <JSONObject> objects)
 {
     BBSDatas.Clear();
     objects.ForEach((obj) => BBSDatas.Add(BBS.CreateData(obj)));
 }