/// <summary> /// 植木鉢セッションを開始 /// </summary> /// <param name="locationX"></param> /// <param name="locationY"></param> /// <param name="treeKey"></param> /// <returns></returns> public static bool StartTreePotSession(double locationX, double locationY, string treeKey) { var arg = new STreePot() { locationX = locationX, locationY = locationY, TreeKey = treeKey }; return(ServerDataManager.Post(arg, paths[KnownPaths.TreePot])); }
/// <summary> /// ユーザー情報を更新します。 /// </summary> /// <param name="locationX"></param> /// <param name="locationY"></param> /// <param name="pid"></param> /// <returns></returns> public static bool UpdateUser(double locationX, double locationY, string pid) { var arg = new SUpdateUser() { locationX = locationX, locationY = locationY, pid = pid }; return(ServerDataManager.Post(arg, paths[KnownPaths.Account])); }
/// <summary> /// Tree(実態)の作成 /// </summary> /// <param name="owner"></param> /// <param name="locationX"></param> /// <param name="locationY"></param> /// <param name="treeName"></param> /// <returns></returns> public static Success <STreeKeyOnly> MakeTree(string owner, double locationX, double locationY, string treeName) { var arg = new SMakeTree() { owner = owner, locationX = locationX, locationY = locationY, TreeName = treeName }; return(ServerDataManager.Post <STreeKeyOnly, SMakeTree>(arg, paths[KnownPaths.Tree])); }
/// <summary> /// チラシ情報をserverに送ります。 /// </summary> /// <param name="date"></param> /// <param name="month"></param> /// <param name="year"></param> /// <param name="message"></param> /// <param name="time"></param> /// <param name="locationX"></param> /// <param name="locationY"></param> /// <returns></returns> public static Success <SFlyerKeyOnly> AddFlyer(int date, int month, int year, string message, string time, double locationX, double locationY) { var arg = new SAddFlyer() { date = date, month = month, year = year, message = message, time = time, locationX = locationX, locationY = locationY, }; return(ServerDataManager.Post <SFlyerKeyOnly, SAddFlyer>(arg, paths[KnownPaths.Flyer])); }
/// <summary> /// /// </summary> /// <param name="kind"></param> /// <param name="message"></param> /// <param name="posX"></param> /// <param name="posY"></param> /// <param name="date"></param> /// <param name="month"></param> /// <param name="year"></param> /// <returns></returns> public static bool AddDecoration(int kind, string message, int posX, int posY, int date, int month, int year, string treeKey) { var arg = new SAddDecoration() { TreeKey = treeKey, kind = kind, message = message, posX = posX, posY = posY, date = date, month = month, year = year }; return(ServerDataManager.Post(arg, paths[KnownPaths.TreeDecoration])); }
/// <summary> /// Partyを追加 /// </summary> /// <param name="locationX"></param> /// <param name="locationY"></param> /// <param name="day"></param> /// <param name="month"></param> /// <param name="year"></param> /// <param name="kind"></param> /// <param name="message"></param> /// <param name="owner"></param> /// <returns></returns> public static bool AddParty(double locationX, double locationY, int day, int month, int year, int kind, string message, string owner) { var arg = new SPartyData() { locationX = locationX, locationY = locationY, dueday = day, duemonth = month, dueyear = year, kind = kind, message = message, owner = owner }; return(ServerDataManager.Post(arg, paths[KnownPaths.Party])); }