Skip to content

Commit 5dbd405

Browse files
author
emin
committed
make tag and mention properties public and accessible
1 parent 2b54757 commit 5dbd405

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/Types.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,25 @@ internal protocol PrivateFielded: Fielded {
4949
/// A tag entity (such as a hashtag or cashtag) found in a string, with indices in its parent string
5050
public struct TagEntity: EntityObject {
5151
/// The start index for this entity
52-
let start: Int
52+
public let start: Int
5353

5454
/// The end index for this entity
55-
let end: Int
55+
public let end: Int
5656

5757
/// The UTF-8 text of the tag itself
58-
let tag: String
58+
public let tag: String
5959
}
6060

6161
/// An @username mention entity found in a string, with indices in its parent string
6262
public struct MentionEntity: EntityObject {
6363
/// The start index for this entity
64-
let start: Int
64+
public let start: Int
6565

6666
/// The end index for this entity
67-
let end: Int
67+
public let end: Int
6868

6969
/// The UTF-8 text of the mentioned username
70-
let username: String
70+
public let username: String
7171
}
7272

7373
/// Information about reasons why and/or countries where the associated content is withheld

0 commit comments

Comments
 (0)