- macos related changes

This commit is contained in:
Mikhail Filimonov
2024-11-27 17:28:22 +04:00
parent 035a9a348b
commit 4440cf72d1
7 changed files with 546 additions and 17 deletions

View File

@@ -648,7 +648,8 @@ func _internal_updateStarRefProgram(account: Account, id: EnginePeer.Id, program
}
}
public final class TelegramConnectedStarRefBotList {
public final class TelegramConnectedStarRefBotList : Equatable {
public final class Item: Equatable {
public let peer: EnginePeer
public let url: String
@@ -701,6 +702,10 @@ public final class TelegramConnectedStarRefBotList {
self.items = items
self.totalCount = totalCount
}
public static func == (lhs: TelegramConnectedStarRefBotList, rhs: TelegramConnectedStarRefBotList) -> Bool {
return lhs.items == rhs.items && lhs.totalCount == rhs.totalCount
}
}
func _internal_requestConnectedStarRefBots(account: Account, id: EnginePeer.Id, offset: (timestamp: Int32, link: String)?, limit: Int) -> Signal<TelegramConnectedStarRefBotList?, NoError> {
@@ -761,7 +766,8 @@ func _internal_requestConnectedStarRefBots(account: Account, id: EnginePeer.Id,
}
}
public final class TelegramSuggestedStarRefBotList {
public final class TelegramSuggestedStarRefBotList : Equatable {
public final class Item: Equatable {
public let peer: EnginePeer
public let commissionPermille: Int32
@@ -796,6 +802,10 @@ public final class TelegramSuggestedStarRefBotList {
self.totalCount = totalCount
self.nextOffset = nextOffset
}
public static func == (lhs: TelegramSuggestedStarRefBotList, rhs: TelegramSuggestedStarRefBotList) -> Bool {
return lhs.items == rhs.items && lhs.totalCount == rhs.totalCount && lhs.nextOffset == rhs.nextOffset
}
}
func _internal_requestSuggestedStarRefBots(account: Account, id: EnginePeer.Id, orderByCommission: Bool, offset: String?, limit: Int) -> Signal<TelegramSuggestedStarRefBotList?, NoError> {