Beispiel #1
0
 /**
  * @brief 월드별 공지, 게임, 야간공지의 푸시 ON/OFF 설정을 할 수 있습니다.
  *
  * @param worldAllowPushNotificationList WorldAllowPushNotification List.
  * @param callback SetWorldsAllowPushNotificationDelegate to deal with a response to the request.
  *
  * @see Result
  * @see WorldAllowPushNotification
  */
 public static void SetWorldsAllowPushNotification(List <WorldAllowPushNotification> worldAllowPushNotificationList, SetWorldsAllowPushNotificationDelegate callback)
 {
     Log.Debug("[Push] setWorldsAllowPushNotification");
     PushImpl.SetWorldsAllowPushNotification(worldAllowPushNotificationList, callback);
 }
Beispiel #2
0
 /**
  * @brief 월드별 공지, 게임, 야간공지의 푸시 ON/OFF 여부를 알 수 있습니다.
  *
  * @param callback GetWorldsAllowPushNotificationDelegate to deal with a response to the request.
  *
  * @see Result
  * @see WorldAllowPushNotification
  */
 public static void GetWorldsAllowPushNotification(GetWorldsAllowPushNotificationDelegate callback)
 {
     Log.Debug("[Push] getWorldsAllowPushNotification");
     PushImpl.GetWorldsAllowPushNotification(callback);
 }
Beispiel #3
0
 public static void DeleteAllNotification()
 {
     Log.Debug("[Push] DeleteAllNotification");
     PushImpl.DeleteAllNotification();
 }
Beispiel #4
0
 /**
  * @brief 공지, 게임, 야간공지의 푸시 ON/OFF를 할 수 있습니다.
  *
  * @param notice AllowPushNotification
  * @param game AllowPushNotification
  * @param nightNotice AllowPushNotification
  * @param callback SetAllowPushNotificationListener to deal with a response to the request.
  * @see SetAllowPushNotificationDelegate
  */
 public static void SetAllowPushNotification(AllowPushNotification notice, AllowPushNotification game, AllowPushNotification nightNotice, SetAllowPushNotificationDelegate callback)
 {
     Log.Debug("[Push] SetAllowPushNotification " + " notice : " + notice + " game : " + game + " nightNotice : " + nightNotice);
     PushImpl.SetAllowPushNotification(notice, game, nightNotice, callback);
 }
Beispiel #5
0
 /**
  * @brief Cancels the local notification that already set to be deliverd.
  *
  * @param localPushId Local push Id to be canceled.
  * @return If success to cancel the local notification returns true, else returns false.
  */
 public static bool CancelLocalNotification(int localPushId)
 {
     Log.Debug("[Push] CancelLocalNotification");
     return(PushImpl.CancelLocalNotification(localPushId));
 }
Beispiel #6
0
 /**
  * @brief Send a push message to me.
  *
  * @param sec bigger than 0.
  * @param message Push message. ex) Hello NetmarbleS.
  * @param notificationId bigger than 0.
  * @param soundFileName Push sound file name. ex)netmarble.mp3
  * @param extras extras
  * @return localPushId
  */
 public static int SetLocalNotification(int sec, string message, int notificationId, string soundFileName, Dictionary <string, object> extras)
 {
     Log.Debug("[Push] SetLocalNotification");
     return(PushImpl.SetLocalNotification(sec, message, notificationId, soundFileName, extras));
 }
Beispiel #7
0
 public static void GetUseLocalPushNotificationList(GetUsePushNotificationDelegate callback)
 {
     Log.Debug("[Push] GetUseLocalPushNotificationList");
     PushImpl.GetUseLocalPushNotificationList(callback);
 }
Beispiel #8
0
 public static void SetUseLocalPushNotification(bool use, int notificationId, SetUsePushNotificationDelegate callback)
 {
     Log.Debug("[Push] SetUseLocalPushNotification use:" + use + " , notificationId : " + notificationId);
     PushImpl.SetUseLocalPushNotification(use, notificationId, callback);
 }
Beispiel #9
0
 /**
  * @brief Sends a push message to other users.
  * @param message Push message.
  * @param notificationId bigger than 0.
  * @param playerIdList Player Id list.
  * @param callback Callback to deal with a response to the request.
  * @see SendPushNotificationDelegate
  */
 public static void SendPushNotification(string message, int notificationId, List <string> playerIdList, SendPushNotificationDelegate callback)
 {
     Log.Debug("[Push] SendPushNotification message:" + message + " , notificationId : " + notificationId);
     PushImpl.SendPushNotification(message, notificationId, playerIdList, callback);
 }