-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spaces: Add support for spaces Summary API #1072
Merged
Merged
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5893503
MXEvent: Add space child event type.
SBiOSoftWhare 0cd1e85
Add MXSpaceChildContent: The space child state event content.
SBiOSoftWhare f8499b5
MXSpace: Add possibility to add a child space.
SBiOSoftWhare d851212
Add MXSpaceChildInfo that represents space child summary informations.
SBiOSoftWhare dd1b700
MXRestClient: Add support to space summary API.
SBiOSoftWhare fc61243
MXSpaceChildContent: Fix predicate issue.
SBiOSoftWhare 9e4d190
MXRestClient: Fix space API issue.
SBiOSoftWhare 2198378
MXSpaceService: Add support of space children API request.
SBiOSoftWhare 94bc509
Add MXSpaceChildContent unit tests.
SBiOSoftWhare 088d3b6
MXSpaceServiceTest: Add a test for getSpaceChildren method.
SBiOSoftWhare 428f16e
Update pbxproj
SBiOSoftWhare 352918d
MXSpace: Update addChild interface.
SBiOSoftWhare 5beb2ab
MXSpaceServiceTest: Update MXSpace.addChild calls and add missing XCT…
SBiOSoftWhare 997ed77
MXSpaceChildSummaryResponse: Update modelFromJSON.
SBiOSoftWhare bd97741
MXSpaceService: Use a dedicated dispatch queue for data processing.
SBiOSoftWhare 32a76f4
MXSpaceService: Improve MXRoomMembersCount building.
SBiOSoftWhare 5c9111e
MXSpaceChildInfo: Add MXRoomType property.
SBiOSoftWhare 4ff8593
MXSpace: Update addChild method to make it clearer the possibility to…
SBiOSoftWhare 374fd22
MXSpaceServiceTest: Add comments and report error if needed when crea…
SBiOSoftWhare 8180db9
MXSpaceChildSummaryResponse: Return nil from modelFromJSON when roomI…
SBiOSoftWhare ecfc55d
MXSpace: Update addChild method with default values for Swift interface.
SBiOSoftWhare 0bd5431
MXSpaceServiceTest: Update addChild method usage.
SBiOSoftWhare File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// Copyright 2021 The Matrix.org Foundation C.I.C | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "MXJSONModel.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// MXSpaceChildContent represents the state event content of space child event type (MXEventType.spaceChild). | ||
@interface MXSpaceChildContent : MXJSONModel | ||
|
||
/// Key which gives a list of candidate servers that can be used to join the room | ||
/// Children where via is not present are ignored. | ||
@property (nonatomic, strong, nullable) NSArray<NSString*>* via; | ||
|
||
/// The order key is a string which is used to provide a default ordering of siblings in the room list. | ||
/// (Rooms are sorted based on a lexicographic ordering of order values; rooms with no order come last. | ||
/// orders which are not strings, or do not consist solely of ascii characters in the range \x20 (space) to \x7F (~), | ||
/// or consist of more than 50 characters, are forbidden and should be ignored if received.) | ||
@property (nonatomic, strong, nullable) NSString *order; | ||
|
||
/// The auto_join flag on a child listing allows a space admin to list the sub-spaces and rooms in that space which should be automatically joined by members of that space. | ||
/// (This is not a force-join, which are descoped for a future MSC; the user can subsequently part these room if they desire.) | ||
/// `NO` by default. | ||
@property (nonatomic) BOOL autoJoin; | ||
|
||
/// If `suggested` is set to `true`, that indicates that the child should be advertised to members of the space by the client. This could be done by showing them eagerly in the room list. | ||
/// This is should be ignored if `auto_join` is set to `true`. | ||
/// `NO` by default. | ||
@property (nonatomic) BOOL suggested; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if can have nil as default value. We are in full swift here, no?