예제 #1
0
 /**
  * Method used to set instance variables in order to avoid constructor repitition.
  *
  * @param profileItem - Specifies what in the profile is being changed, if only one value is changing.
  * @param userId - Specifies which user's profile is changing, if not the authenticated user's.
  * @param value - Specifices what profileItem's value will be, if only one value is changing.
  * @param profile - Sets the entire profile, if not null.
  */
 private void Initialize(string profileItem, string userId, string value, JsonUserProfile profile)
 {
     _profileItem = profileItem;
     _userId      = userId;
     _value       = value;
     _profile     = profile;
 }
예제 #2
0
 /**
  * Constructor for setting a given user's whole profile.
  *
  * @param token - The app User token.
  */
 public SetUserProfile(string token, string userId, JsonUserProfile profile) : base(token)
 {
     Initialize("", userId, "", profile);
 }