mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			407 B
		
	
	
	
		
			Swift
		
	
			
		
		
	
	
			16 lines
		
	
	
		
			407 B
		
	
	
	
		
			Swift
		
	
 | 
						|
@objc(LKMention)
 | 
						|
public final class Mention : NSObject {
 | 
						|
    @objc public let publicKey: String
 | 
						|
    @objc public let displayName: String
 | 
						|
    
 | 
						|
    @objc public init(publicKey: String, displayName: String) {
 | 
						|
        self.publicKey = publicKey
 | 
						|
        self.displayName = displayName
 | 
						|
    }
 | 
						|
    
 | 
						|
    @objc public func isContained(in string: String) -> Bool {
 | 
						|
        return string.contains(displayName)
 | 
						|
    }
 | 
						|
}
 |