Beispiel #1
0
 public static void delete_event(Context context, String Event_ID) {
   // Delete event in app sql + server sql.
   Delete_Event_MySQL(Event_ID);
   Delete_Event_ServerSQL(context, Event_ID);
   // Send message to all users to delete the event.
   String message = Constants.Delete_Event + "|" + Event_ID;
   Send_Message_To_All_My_Friend_By_Event_ServerSQL(context, Event_ID, message);
 }
Beispiel #2
0
 public static void leave_event(Context context, String Event_ID, String User_ID) {
   // Delete event in app sql.
   Delete_Event_MySQL(Event_ID);
   // Delete user from server sql.
   new EventUser_AsyncTask_delete(context).execute(Event_ID, User_ID);
   // Send message to all users to delete the event.
   String message = Constants.Delete_User + "|" + Event_ID + "^" + User_ID;
   Send_Message_To_All_My_Friend_By_Event_ServerSQL(context, Event_ID, message);
 }