Skip to content

Commit 19ff81a

Browse files
SpaceStatus and UserSpacePermission.cs update
1 parent b832a63 commit 19ff81a

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/Dto/SpaceStatusDto.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,10 @@ internal class SpaceStatusDto
1616
public bool IsPublic { get; set; }
1717
[DataMember(Name = "userPermissions")]
1818
public List<string> UserPermissions { get; set; }
19+
20+
[DataMember (Name = "spaceDescription")]
21+
public string SpaceDescription { get; set; }
22+
23+
1924
}
2025
}

src/Mappers/SpaceStatusMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public static SpaceStatus MapFromDto(SpaceStatusDto dto)
1616
{
1717
IsPublic = dto.IsPublic,
1818
SpaceName = dto.SpaceName,
19-
UserPermissions = dto.UserPermissions?.Select(MapPermission)?.Where(x => x.HasValue)?.Select(x => x.Value)?.ToList().AsReadOnly()
20-
19+
UserPermissions = dto.UserPermissions?.Select(MapPermission)?.Where(x => x.HasValue)?.Select(x => x.Value)?.ToList().AsReadOnly(),
20+
SpaceDescription = dto.SpaceDescription
2121
};
2222
}
2323

src/Model/SpaceStatus.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ public class SpaceStatus
1111
public string SpaceName { get; internal set; }
1212
public bool IsPublic { get; internal set; }
1313
public IReadOnlyList<UserSpacePermission> UserPermissions { get; internal set; }
14+
public string SpaceDescription { get; internal set; }
1415
}
1516
}

src/Model/UserSpacePermission.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@ public enum UserSpacePermission
1414
FileUpload,
1515
FileDownload,
1616
FileDeletion,
17+
18+
WebPagesView,
19+
CatalogAccess,
20+
CustomApiServer
1721
}
1822
}

0 commit comments

Comments
 (0)