Exemple #1
0
 /// <summary>
 /// Constructor of the UserObject.
 /// Contains all arguments the SlimUserObject always has, so those have to be set.
 /// </summary>
 public UserObject(int id, string screen_name, string display_name, string def_avatar, string def_header, UserFlagObject flags, bool banned, bool allow_stranger_answers)
 {
     Id                   = id;
     ScreenName           = screen_name;
     OptionalName         = display_name;
     Avatar               = new AvatarObject(def_avatar);
     Header               = new HeaderObject(def_header);
     Flags                = flags;
     Banned               = new UserBannedObject(banned);
     AllowStrangerAnswers = allow_stranger_answers;
 }
 /// <summary>
 /// Constructor of the UserObject.
 /// Contains all arguments the SlimUserObject always has, so those have to be set.
 /// </summary>
 public UserObject(int id, string screen_name, string display_name, string def_avatar, string def_header, UserFlagObject flags, bool banned, bool allow_stranger_answers)
 {
     Id = id;
     ScreenName = screen_name;
     OptionalName = display_name;
     Avatar = new AvatarObject(def_avatar);
     Header = new HeaderObject(def_header);
     Flags = flags;
     Banned = new UserBannedObject(banned);
     AllowStrangerAnswers = allow_stranger_answers;
 }