/// <summary> /// <para>Initializes a new instance of the <see /// cref="GroupChangeManagementTypeDetails" /> class.</para> /// </summary> /// <param name="newValue">New group management type.</param> /// <param name="previousValue">Previous group management type. Might be missing due to /// historical data gap.</param> public GroupChangeManagementTypeDetails(global::Dropbox.Api.TeamCommon.GroupManagementType newValue, global::Dropbox.Api.TeamCommon.GroupManagementType previousValue = null) { if (newValue == null) { throw new sys.ArgumentNullException("newValue"); } this.NewValue = newValue; this.PreviousValue = previousValue; }
/// <summary> /// <para>Initializes a new instance of the <see cref="GroupCreateArg" /> class.</para> /// </summary> /// <param name="groupName">Group name.</param> /// <param name="groupExternalId">The creator of a team can associate an arbitrary /// external ID to the group.</param> /// <param name="groupManagementType">Whether the team can be managed by selected /// users, or only by team admins.</param> public GroupCreateArg(string groupName, string groupExternalId = null, global::Dropbox.Api.TeamCommon.GroupManagementType groupManagementType = null) { if (groupName == null) { throw new sys.ArgumentNullException("groupName"); } this.GroupName = groupName; this.GroupExternalId = groupExternalId; this.GroupManagementType = groupManagementType; }
/// <summary> /// <para>Initializes a new instance of the <see cref="GroupFullInfo" /> class.</para> /// </summary> /// <param name="groupName">The group name</param> /// <param name="groupId">The group id</param> /// <param name="groupManagementType">Who is allowed to manage the group.</param> /// <param name="created">The group creation time as a UTC timestamp in milliseconds /// since the Unix epoch.</param> /// <param name="groupExternalId">External ID of group. This is an arbitrary ID that an /// admin can attach to a group.</param> /// <param name="memberCount">The number of members in the group.</param> /// <param name="members">List of group members.</param> public GroupFullInfo(string groupName, string groupId, global::Dropbox.Api.TeamCommon.GroupManagementType groupManagementType, ulong created, string groupExternalId = null, uint?memberCount = null, col.IEnumerable <GroupMemberInfo> members = null) : base(groupName, groupId, groupManagementType, groupExternalId, memberCount) { var membersList = enc.Util.ToList(members); this.Created = created; this.Members = membersList; }
/// <summary> /// <para>Initializes a new instance of the <see cref="GroupUpdateArgs" /> /// class.</para> /// </summary> /// <param name="group">Specify a group.</param> /// <param name="returnMembers">Whether to return the list of members in the group. /// Note that the default value will cause all the group members to be returned in the /// response. This may take a long time for large groups.</param> /// <param name="newGroupName">Optional argument. Set group name to this if /// provided.</param> /// <param name="newGroupExternalId">Optional argument. New group external ID. If the /// argument is None, the group's external_id won't be updated. If the argument is /// empty string, the group's external id will be cleared.</param> /// <param name="newGroupManagementType">Set new group management type, if /// provided.</param> public GroupUpdateArgs(GroupSelector @group, bool returnMembers = true, string newGroupName = null, string newGroupExternalId = null, global::Dropbox.Api.TeamCommon.GroupManagementType newGroupManagementType = null) : base(returnMembers) { if (@group == null) { throw new sys.ArgumentNullException("@group"); } this.Group = @group; this.NewGroupName = newGroupName; this.NewGroupExternalId = newGroupExternalId; this.NewGroupManagementType = newGroupManagementType; }
/// <summary> /// <para>Initializes a new instance of the <see cref="GroupInfo" /> class.</para> /// </summary> /// <param name="groupName">The group name</param> /// <param name="groupId">The group id</param> /// <param name="groupManagementType">Who is allowed to manage the group.</param> /// <param name="groupType">The type of group.</param> /// <param name="isMember">If the current user is a member of the group.</param> /// <param name="isOwner">If the current user is an owner of the group.</param> /// <param name="sameTeam">If the group is owned by the current user's team.</param> /// <param name="groupExternalId">External ID of group. This is an arbitrary ID that an /// admin can attach to a group.</param> /// <param name="memberCount">The number of members in the group.</param> public GroupInfo(string groupName, string groupId, global::Dropbox.Api.TeamCommon.GroupManagementType groupManagementType, global::Dropbox.Api.TeamCommon.GroupType groupType, bool isMember, bool isOwner, bool sameTeam, string groupExternalId = null, uint?memberCount = null) : base(groupName, groupId, groupManagementType, groupExternalId, memberCount) { if (groupType == null) { throw new sys.ArgumentNullException("groupType"); } this.GroupType = groupType; this.IsMember = isMember; this.IsOwner = isOwner; this.SameTeam = sameTeam; }