public bool SetReminderOptions(ReminderEvent reminderEvent, ReminderLevel reminderLevel, ReminderRoundInitiative reminderRoundInitiative, AuthInfo authorization, out string message)
		{
			return s.SetReminderOptions(reminderEvent, reminderLevel, reminderRoundInitiative, authorization, out message);
		}
示例#2
0
 public bool SetReminderOptions(ReminderEvent reminderEvent, ReminderLevel reminderLevel, ReminderRoundInitiative reminderRoundInitiative, AuthInfo authorization, out string message)
 {
     return(s.SetReminderOptions(reminderEvent, reminderLevel, reminderRoundInitiative, authorization, out message));
 }
		public bool SetReminderOptions(ReminderEvent reminderEvent,
		                               ReminderLevel reminderLevel,
		                               ReminderRoundInitiative reminderRoundInitiative,
		                               AuthInfo authorization,
		                               out string message)
		{
			if (authorization == null) {
				throw new ArgumentNullException("authorization");
			}
			if (!ValidateLogin(authorization)) {
				message = "Wrong username or password.";
				return false;
			}
			var player = Galaxy.GetPlayer(authorization.Login);
			player.ReminderEvent = reminderEvent;
			player.ReminderLevel = reminderLevel;
			player.ReminderRoundInitiative = reminderRoundInitiative;
			message = "Success";
			SaveState();
			return true;
		}