Box representation of a collaboration
Inheritance: BoxEntity
Esempio n. 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);
        }
Esempio n. 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);
        }