コード例 #1
0
        public string UpdateFriendSetting(FriendSetting newFriendSetting)
        {
            foreach (var friendSetting in FriendSettings)
            {
                if (friendSetting.GetStatus() == FriendSettingStatus.AGREE)
                {
                    if (friendSetting.GetId().Equals(newFriendSetting.GetId()))
                    {
                        friendSetting.SetNote(newFriendSetting.GetNote());
                        friendSetting.SetDisablePost(newFriendSetting.IsDisablePost());
                        return(null);
                    }
                }
            }

            return("Can't find the friend: " + newFriendSetting.GetNote() + "[" + newFriendSetting.GetId() + "]");
        }
コード例 #2
0
 public void Update(FriendSetting friendSetting)
 {
     Note        = friendSetting.GetNote();
     DisablePost = friendSetting.IsDisablePost();
     Status      = friendSetting.GetStatus();
 }