Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from alternatiph/master
Browse files Browse the repository at this point in the history
added API v74
  • Loading branch information
Kayvan Nouri authored Oct 19, 2017
2 parents 18158ab + 75ec2f5 commit c35d720
Show file tree
Hide file tree
Showing 12 changed files with 1,730 additions and 6 deletions.
24 changes: 24 additions & 0 deletions IGProtoBuff.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

/* Begin PBXBuildFile section */
FA76382E1E2FFD5E00C24391 /* IGProtoBuff.h in Headers */ = {isa = PBXBuildFile; fileRef = FA76382C1E2FFD5E00C24391 /* IGProtoBuff.h */; settings = {ATTRIBUTES = (Public, ); }; };
FAA1BDB21F98EDF90010FE8A /* ClientMuteRoom.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */; };
FAA1BDB81F98EE230010FE8A /* ClientPinRoom.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */; };
FAA1BDB91F98EE230010FE8A /* UserProfileSetBio.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */; };
FAA1BDBA1F98EE230010FE8A /* ClientRoomReport.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */; };
FAA1BDBB1F98EE230010FE8A /* UserProfileGetBio.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB61F98EE230010FE8A /* UserProfileGetBio.pb.swift */; };
FAA1BDBC1F98EE230010FE8A /* UserReport.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB71F98EE230010FE8A /* UserReport.pb.swift */; };
FAF5D23D1F8D66DB00A26EE1 /* SwiftProtobuf.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAF5D23C1F8D66CE00A26EE1 /* SwiftProtobuf.framework */; };
FAF5D23F1F8D6AF100A26EE1 /* ChannelAddAdmin.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF5D1FE1F8D665300A26EE1 /* ChannelAddAdmin.pb.swift */; };
FAF5D2401F8D6C2000A26EE1 /* ChannelAddMember.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF5D2071F8D665600A26EE1 /* ChannelAddMember.pb.swift */; };
Expand Down Expand Up @@ -182,6 +188,12 @@
FA7638291E2FFD5E00C24391 /* IGProtoBuff.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = IGProtoBuff.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FA76382C1E2FFD5E00C24391 /* IGProtoBuff.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IGProtoBuff.h; sourceTree = "<group>"; };
FA76382D1E2FFD5E00C24391 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientMuteRoom.pb.swift; sourceTree = "<group>"; };
FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientPinRoom.pb.swift; sourceTree = "<group>"; };
FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserProfileSetBio.pb.swift; sourceTree = "<group>"; };
FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientRoomReport.pb.swift; sourceTree = "<group>"; };
FAA1BDB61F98EE230010FE8A /* UserProfileGetBio.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserProfileGetBio.pb.swift; sourceTree = "<group>"; };
FAA1BDB71F98EE230010FE8A /* UserReport.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserReport.pb.swift; sourceTree = "<group>"; };
FAF5D1951F8D663800A26EE1 /* QrCodeAddContact.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrCodeAddContact.pb.swift; sourceTree = "<group>"; };
FAF5D1961F8D663800A26EE1 /* GroupAddAdmin.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupAddAdmin.pb.swift; sourceTree = "<group>"; };
FAF5D1971F8D663800A26EE1 /* GroupAddModerator.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupAddModerator.pb.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -367,6 +379,12 @@
FA5A9FF11F71ECEF00D925F5 /* ProtoBuffs */ = {
isa = PBXGroup;
children = (
FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */,
FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */,
FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */,
FAA1BDB61F98EE230010FE8A /* UserProfileGetBio.pb.swift */,
FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */,
FAA1BDB71F98EE230010FE8A /* UserReport.pb.swift */,
FAF5D1FE1F8D665300A26EE1 /* ChannelAddAdmin.pb.swift */,
FAF5D2071F8D665600A26EE1 /* ChannelAddMember.pb.swift */,
FAF5D21A1F8D665C00A26EE1 /* ChannelAddMessageReaction.pb.swift */,
Expand Down Expand Up @@ -707,6 +725,7 @@
FAF5D25B1F8D6C2000A26EE1 /* ChatConvertToGroup.pb.swift in Sources */,
FAF5D2B81F8D6C2000A26EE1 /* UserAvatarDelete.pb.swift in Sources */,
FAF5D2851F8D6C2000A26EE1 /* GroupAddMember.pb.swift in Sources */,
FAA1BDBA1F98EE230010FE8A /* ClientRoomReport.pb.swift in Sources */,
FAF5D2CF1F8D6C2000A26EE1 /* UserProfileSetSelfRemove.pb.swift in Sources */,
FAF5D2D71F8D6C2000A26EE1 /* UserTwoStepVerificationChangeRecoveryQuestion.pb.swift in Sources */,
FAF5D28B1F8D6C2000A26EE1 /* GroupClearMessage.pb.swift in Sources */,
Expand Down Expand Up @@ -761,15 +780,18 @@
FAF5D2AC1F8D6C2000A26EE1 /* QrCodeResolve.pb.swift in Sources */,
FAF5D2CD1F8D6C2000A26EE1 /* UserProfileSetGender.pb.swift in Sources */,
FAF5D2951F8D6C2000A26EE1 /* GroupKickModerator.pb.swift in Sources */,
FAA1BDB81F98EE230010FE8A /* ClientPinRoom.pb.swift in Sources */,
FAF5D26B1F8D6C2000A26EE1 /* ClientGetRoomMessage.pb.swift in Sources */,
FAF5D29D1F8D6C2000A26EE1 /* GroupUpdateUsername.pb.swift in Sources */,
FAA1BDB91F98EE230010FE8A /* UserProfileSetBio.pb.swift in Sources */,
FAF5D2D21F8D6C2000A26EE1 /* UserSessionGetActiveList.pb.swift in Sources */,
FAF5D2641F8D6C2000A26EE1 /* ChatUpdateStatus.pb.swift in Sources */,
FAF5D2A51F8D6C2000A26EE1 /* PushRateSignaling.pb.swift in Sources */,
FAF5D2E11F8D6C2000A26EE1 /* UserTwoStepVerificationVerifyRecoveryEmail.pb.swift in Sources */,
FAF5D2B31F8D6C2000A26EE1 /* SignalingOffer.pb.swift in Sources */,
FAF5D2681F8D6C2000A26EE1 /* ClientGetRoom.pb.swift in Sources */,
FAF5D2C31F8D6C2000A26EE1 /* UserInfo.pb.swift in Sources */,
FAA1BDBC1F98EE230010FE8A /* UserReport.pb.swift in Sources */,
FAF5D26C1F8D6C2000A26EE1 /* ClientJoinByInviteLink.pb.swift in Sources */,
FAF5D2B01F8D6C2000A26EE1 /* SignalingGetConfiguration.pb.swift in Sources */,
FAF5D2C81F8D6C2000A26EE1 /* UserProfileGetEmail.pb.swift in Sources */,
Expand All @@ -790,6 +812,7 @@
FAF5D2771F8D6C2000A26EE1 /* FileUpload.pb.swift in Sources */,
FAF5D2C71F8D6C2000A26EE1 /* UserProfileCheckUsername.pb.swift in Sources */,
FAF5D2871F8D6C2000A26EE1 /* GroupAvatarAdd.pb.swift in Sources */,
FAA1BDB21F98EDF90010FE8A /* ClientMuteRoom.pb.swift in Sources */,
FAF5D2A41F8D6C2000A26EE1 /* PushLoginToken.pb.swift in Sources */,
FAF5D25A1F8D6C2000A26EE1 /* ChatClearMessage.pb.swift in Sources */,
FAF5D2811F8D6C2000A26EE1 /* GeoUpdateComment.pb.swift in Sources */,
Expand All @@ -800,6 +823,7 @@
FAF5D29B1F8D6C2000A26EE1 /* GroupUpdateDraft.pb.swift in Sources */,
FAF5D2CE1F8D6C2000A26EE1 /* UserProfileSetNickname.pb.swift in Sources */,
FAF5D28D1F8D6C2000A26EE1 /* GroupDelete.pb.swift in Sources */,
FAA1BDBB1F98EE230010FE8A /* UserProfileGetBio.pb.swift in Sources */,
FAF5D2461F8D6C2000A26EE1 /* ChannelCheckUsername.pb.swift in Sources */,
FAF5D2BB1F8D6C2000A26EE1 /* UserContactsDelete.pb.swift in Sources */,
FAF5D2981F8D6C2000A26EE1 /* GroupRevokeLink.pb.swift in Sources */,
Expand Down
13 changes: 13 additions & 0 deletions IGProtoBuff/ProtoBuffs/ChatDeleteMessage.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public struct IGPChatDeleteMessage: SwiftProtobuf.RequestMessage {
set {_uniqueStorage()._igpMessageID = newValue}
}

public var igpBoth: Bool {
get {return _storage._igpBoth}
set {_uniqueStorage()._igpBoth = newValue}
}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
Expand All @@ -57,6 +62,7 @@ public struct IGPChatDeleteMessage: SwiftProtobuf.RequestMessage {
case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest)
case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMessageID)
case 4: try decoder.decodeSingularBoolField(value: &_storage._igpBoth)
default: break
}
}
Expand All @@ -78,6 +84,9 @@ public struct IGPChatDeleteMessage: SwiftProtobuf.RequestMessage {
if _storage._igpMessageID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpMessageID, fieldNumber: 3)
}
if _storage._igpBoth != false {
try visitor.visitSingularBoolField(value: _storage._igpBoth, fieldNumber: 4)
}
}
try unknownFields.traverse(visitor: &visitor)
}
Expand Down Expand Up @@ -167,12 +176,14 @@ extension IGPChatDeleteMessage: SwiftProtobuf._MessageImplementationBase, SwiftP
1: .standard(proto: "IGP_request"),
2: .standard(proto: "IGP_room_id"),
3: .standard(proto: "IGP_message_id"),
4: .standard(proto: "IGP_both"),
]

fileprivate class _StorageClass {
var _igpRequest: IGPRequest? = nil
var _igpRoomID: Int64 = 0
var _igpMessageID: Int64 = 0
var _igpBoth: Bool = false

static let defaultInstance = _StorageClass()

Expand All @@ -182,6 +193,7 @@ extension IGPChatDeleteMessage: SwiftProtobuf._MessageImplementationBase, SwiftP
_igpRequest = source._igpRequest
_igpRoomID = source._igpRoomID
_igpMessageID = source._igpMessageID
_igpBoth = source._igpBoth
}
}

Expand All @@ -200,6 +212,7 @@ extension IGPChatDeleteMessage: SwiftProtobuf._MessageImplementationBase, SwiftP
if _storage._igpRequest != other_storage._igpRequest {return false}
if _storage._igpRoomID != other_storage._igpRoomID {return false}
if _storage._igpMessageID != other_storage._igpMessageID {return false}
if _storage._igpBoth != other_storage._igpBoth {return false}
return true
}
if !storagesAreEqual {return false}
Expand Down
75 changes: 69 additions & 6 deletions IGProtoBuff/ProtoBuffs/ClientCondition.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage {

public var igpDeleteVersion: Int64 = 0

public var igpOfflineDeleted: [Int64] = []
///DEPRECATED
public var igpOfflineDeletedDeprecated: [Int64] = []

public var igpOfflineEdited: [IGPClientCondition.IGPRoom.IGPOfflineEdited] = []

Expand All @@ -65,6 +66,8 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage {

public var igpOfflineListened: [Int64] = []

public var igpOfflineDeleted: [IGPClientCondition.IGPRoom.IGPOfflineDeleted] = []

public var unknownFields = SwiftProtobuf.UnknownStorage()

public enum IGPOfflineMute: SwiftProtobuf.Enum {
Expand Down Expand Up @@ -138,6 +141,46 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage {
}
}

public struct IGPOfflineDeleted: SwiftProtobuf.Message {
public static let protoMessageName: String = IGPClientCondition.IGPRoom.protoMessageName + ".IGPOfflineDeleted"

public var igpMessageID: Int64 = 0

public var igpBoth: Bool = false

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}

/// Used by the decoding initializers in the SwiftProtobuf library, not generally
/// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
/// initializers are defined in the SwiftProtobuf library. See the Message and
/// Message+*Additions` files.
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt64Field(value: &self.igpMessageID)
case 4: try decoder.decodeSingularBoolField(value: &self.igpBoth)
default: break
}
}
}

/// Used by the encoding methods of the SwiftProtobuf library, not generally
/// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
/// other serializer methods are defined in the SwiftProtobuf library. See the
/// `Message` and `Message+*Additions` files.
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.igpMessageID != 0 {
try visitor.visitSingularInt64Field(value: self.igpMessageID, fieldNumber: 1)
}
if self.igpBoth != false {
try visitor.visitSingularBoolField(value: self.igpBoth, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
}

public init() {}

/// Used by the decoding initializers in the SwiftProtobuf library, not generally
Expand All @@ -151,14 +194,15 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage {
case 3: try decoder.decodeSingularInt64Field(value: &self.igpMessageVersion)
case 4: try decoder.decodeSingularInt64Field(value: &self.igpStatusVersion)
case 5: try decoder.decodeSingularInt64Field(value: &self.igpDeleteVersion)
case 6: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineDeleted)
case 6: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineDeletedDeprecated)
case 7: try decoder.decodeRepeatedMessageField(value: &self.igpOfflineEdited)
case 8: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineSeen)
case 9: try decoder.decodeSingularInt64Field(value: &self.igpClearID)
case 10: try decoder.decodeSingularInt64Field(value: &self.igpCacheStartID)
case 11: try decoder.decodeSingularInt64Field(value: &self.igpCacheEndID)
case 12: try decoder.decodeSingularEnumField(value: &self.igpOfflineMute)
case 13: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineListened)
case 14: try decoder.decodeRepeatedMessageField(value: &self.igpOfflineDeleted)
default: break
}
}
Expand All @@ -181,8 +225,8 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage {
if self.igpDeleteVersion != 0 {
try visitor.visitSingularInt64Field(value: self.igpDeleteVersion, fieldNumber: 5)
}
if !self.igpOfflineDeleted.isEmpty {
try visitor.visitPackedInt64Field(value: self.igpOfflineDeleted, fieldNumber: 6)
if !self.igpOfflineDeletedDeprecated.isEmpty {
try visitor.visitPackedInt64Field(value: self.igpOfflineDeletedDeprecated, fieldNumber: 6)
}
if !self.igpOfflineEdited.isEmpty {
try visitor.visitRepeatedMessageField(value: self.igpOfflineEdited, fieldNumber: 7)
Expand All @@ -205,6 +249,9 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage {
if !self.igpOfflineListened.isEmpty {
try visitor.visitPackedInt64Field(value: self.igpOfflineListened, fieldNumber: 13)
}
if !self.igpOfflineDeleted.isEmpty {
try visitor.visitRepeatedMessageField(value: self.igpOfflineDeleted, fieldNumber: 14)
}
try unknownFields.traverse(visitor: &visitor)
}
}
Expand Down Expand Up @@ -346,29 +393,31 @@ extension IGPClientCondition.IGPRoom: SwiftProtobuf._MessageImplementationBase,
3: .standard(proto: "IGP_message_version"),
4: .standard(proto: "IGP_status_version"),
5: .standard(proto: "IGP_delete_version"),
6: .standard(proto: "IGP_offline_deleted"),
6: .standard(proto: "IGP_offline_deleted_deprecated"),
7: .standard(proto: "IGP_offline_edited"),
8: .standard(proto: "IGP_offline_seen"),
9: .standard(proto: "IGP_clear_id"),
10: .standard(proto: "IGP_cache_start_id"),
11: .standard(proto: "IGP_cache_end_id"),
12: .standard(proto: "IGP_offline_mute"),
13: .standard(proto: "IGP_offline_listened"),
14: .standard(proto: "IGP_offline_deleted"),
]

public func _protobuf_generated_isEqualTo(other: IGPClientCondition.IGPRoom) -> Bool {
if self.igpRoomID != other.igpRoomID {return false}
if self.igpMessageVersion != other.igpMessageVersion {return false}
if self.igpStatusVersion != other.igpStatusVersion {return false}
if self.igpDeleteVersion != other.igpDeleteVersion {return false}
if self.igpOfflineDeleted != other.igpOfflineDeleted {return false}
if self.igpOfflineDeletedDeprecated != other.igpOfflineDeletedDeprecated {return false}
if self.igpOfflineEdited != other.igpOfflineEdited {return false}
if self.igpOfflineSeen != other.igpOfflineSeen {return false}
if self.igpClearID != other.igpClearID {return false}
if self.igpCacheStartID != other.igpCacheStartID {return false}
if self.igpCacheEndID != other.igpCacheEndID {return false}
if self.igpOfflineMute != other.igpOfflineMute {return false}
if self.igpOfflineListened != other.igpOfflineListened {return false}
if self.igpOfflineDeleted != other.igpOfflineDeleted {return false}
if unknownFields != other.unknownFields {return false}
return true
}
Expand Down Expand Up @@ -396,6 +445,20 @@ extension IGPClientCondition.IGPRoom.IGPOfflineEdited: SwiftProtobuf._MessageImp
}
}

extension IGPClientCondition.IGPRoom.IGPOfflineDeleted: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_message_id"),
4: .standard(proto: "IGP_both"),
]

public func _protobuf_generated_isEqualTo(other: IGPClientCondition.IGPRoom.IGPOfflineDeleted) -> Bool {
if self.igpMessageID != other.igpMessageID {return false}
if self.igpBoth != other.igpBoth {return false}
if unknownFields != other.unknownFields {return false}
return true
}
}

extension IGPClientConditionResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_response"),
Expand Down
Loading

0 comments on commit c35d720

Please sign in to comment.