Box representation of a collaboration
상속: BoxEntity
예제 #1
0
        internal List <Permission> GetPermissions(Box.V2.Models.BoxCollaboration collab)
        {
            List <Permission> permissions = new List <Permission>();
            Permission        permission  = new Permission();

            permission.PermissionType = collab.Role;
            permissions.Add(permission);
            return(permissions);
        }
예제 #2
0
        internal User CreateUserObject(Box.V2.Models.BoxCollaboration collaboration)
        {
            User user = new User()
            {
                DisplayName = collaboration.AccessibleBy.Id,
                //EmailAddress = userInfo.Login,
                Permissions = GetPermissions(collaboration),
            };

            return(user);
        }