/// <summary>
 /// <para>Initializes a new instance of the <see cref="AlphaGroupUpdateArgs" />
 /// 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 AlphaGroupUpdateArgs(GroupSelector @group,
                             bool returnMembers        = true,
                             string newGroupName       = null,
                             string newGroupExternalId = null,
                             Dropbox.Api.TeamCommon.GroupManagementType newGroupManagementType = null)
     : base(@group, returnMembers, newGroupName, newGroupExternalId)
 {
     this.NewGroupManagementType = newGroupManagementType;
 }
Пример #2
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="AlphaGroupCreateArg" />
 /// 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 AlphaGroupCreateArg(string groupName,
                            string groupExternalId = null,
                            Dropbox.Api.TeamCommon.GroupManagementType groupManagementType = null)
     : base(groupName, groupExternalId)
 {
     if (groupManagementType == null)
     {
         groupManagementType = Dropbox.Api.TeamCommon.GroupManagementType.CompanyManaged.Instance;
     }
     this.GroupManagementType = groupManagementType;
 }
Пример #3
0
        /// <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,
                              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="AlphaGroupFullInfo" />
        /// 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 AlphaGroupFullInfo(string groupName,
                                  string groupId,
                                  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,
                               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;
        }
Пример #6
0
        /// <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="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,
                         Dropbox.Api.TeamCommon.GroupManagementType groupManagementType,
                         Dropbox.Api.TeamCommon.GroupType groupType,
                         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.IsOwner   = isOwner;
            this.SameTeam  = sameTeam;
        }