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

Commit

Permalink
Update To Build 87
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedmozaffariGithub committed Jun 26, 2018
1 parent 0b431f4 commit 615a5fb
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IGProtoBuff.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
FA416B9120D8DEB50013DB17 /* MplGetTopupToken.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA416B8F20D8DEB50013DB17 /* MplGetTopupToken.pb.swift */; };
FA416B9220D8DEB50013DB17 /* MplGetBillToken.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA416B9020D8DEB50013DB17 /* MplGetBillToken.pb.swift */; };
FA76382E1E2FFD5E00C24391 /* IGProtoBuff.h in Headers */ = {isa = PBXBuildFile; fileRef = FA76382C1E2FFD5E00C24391 /* IGProtoBuff.h */; settings = {ATTRIBUTES = (Public, ); }; };
FA8CF03720E2729400994811 /* WalletPaymentInit.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8CF03620E2729400994811 /* WalletPaymentInit.pb.swift */; };
FA90B73A20B59D9700043C89 /* ChannelUpdateReactionStatus.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90B73720B59D9600043C89 /* ChannelUpdateReactionStatus.pb.swift */; };
FA90B73B20B59D9700043C89 /* GroupPinMessage.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90B73820B59D9600043C89 /* GroupPinMessage.pb.swift */; };
FA90B73C20B59D9700043C89 /* ChannelPinMessage.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90B73920B59D9700043C89 /* ChannelPinMessage.pb.swift */; };
Expand Down Expand Up @@ -199,6 +200,7 @@
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>"; };
FA8CF03620E2729400994811 /* WalletPaymentInit.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletPaymentInit.pb.swift; sourceTree = "<group>"; };
FA90B73720B59D9600043C89 /* ChannelUpdateReactionStatus.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChannelUpdateReactionStatus.pb.swift; sourceTree = "<group>"; };
FA90B73820B59D9600043C89 /* GroupPinMessage.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupPinMessage.pb.swift; sourceTree = "<group>"; };
FA90B73920B59D9700043C89 /* ChannelPinMessage.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChannelPinMessage.pb.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -393,6 +395,7 @@
FA5A9FF11F71ECEF00D925F5 /* ProtoBuffs */ = {
isa = PBXGroup;
children = (
FA8CF03620E2729400994811 /* WalletPaymentInit.pb.swift */,
FA416B9020D8DEB50013DB17 /* MplGetBillToken.pb.swift */,
FA416B8F20D8DEB50013DB17 /* MplGetTopupToken.pb.swift */,
FA416B8D20D8DE890013DB17 /* ClientRegisterDevice.pb.swift */,
Expand Down Expand Up @@ -692,6 +695,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FA8CF03720E2729400994811 /* WalletPaymentInit.pb.swift in Sources */,
FA90B73A20B59D9700043C89 /* ChannelUpdateReactionStatus.pb.swift in Sources */,
FA90B73B20B59D9700043C89 /* GroupPinMessage.pb.swift in Sources */,
FA90B73C20B59D9700043C89 /* ChannelPinMessage.pb.swift in Sources */,
Expand Down
26 changes: 26 additions & 0 deletions IGProtoBuff/ProtoBuffs/UserLogin.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ public struct IGPUserLoginResponse: SwiftProtobuf.ResponseMessage {
set {_uniqueStorage()._igpChatDeleteMessageForBothPeriod = newValue}
}

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

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

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
Expand Down Expand Up @@ -282,6 +292,8 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP
3: .standard(proto: "IGP_secondary_node_name"),
4: .standard(proto: "IGP_update_available"),
5: .standard(proto: "IGP_chat_delete_message_for_both_period"),
6: .standard(proto: "IGP_wallet_active"),
7: .standard(proto: "IGP_mpl_active"),
]

fileprivate class _StorageClass {
Expand All @@ -290,6 +302,8 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP
var _igpSecondaryNodeName: String = String()
var _igpUpdateAvailable: Bool = false
var _igpChatDeleteMessageForBothPeriod: Int32 = 0
var _igpWalletActive: Bool = false
var _igpMplActive: Bool = false

static let defaultInstance = _StorageClass()

Expand All @@ -301,6 +315,8 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP
_igpSecondaryNodeName = source._igpSecondaryNodeName
_igpUpdateAvailable = source._igpUpdateAvailable
_igpChatDeleteMessageForBothPeriod = source._igpChatDeleteMessageForBothPeriod
_igpWalletActive = source._igpWalletActive
_igpMplActive = source._igpMplActive
}
}

Expand All @@ -321,6 +337,8 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP
case 3: try decoder.decodeSingularStringField(value: &_storage._igpSecondaryNodeName)
case 4: try decoder.decodeSingularBoolField(value: &_storage._igpUpdateAvailable)
case 5: try decoder.decodeSingularInt32Field(value: &_storage._igpChatDeleteMessageForBothPeriod)
case 6: try decoder.decodeSingularBoolField(value: &_storage._igpWalletActive)
case 7: try decoder.decodeSingularBoolField(value: &_storage._igpMplActive)
default: break
}
}
Expand All @@ -344,6 +362,12 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP
if _storage._igpChatDeleteMessageForBothPeriod != 0 {
try visitor.visitSingularInt32Field(value: _storage._igpChatDeleteMessageForBothPeriod, fieldNumber: 5)
}
if _storage._igpWalletActive != false {
try visitor.visitSingularBoolField(value: _storage._igpWalletActive, fieldNumber: 6)
}
if _storage._igpMplActive != false {
try visitor.visitSingularBoolField(value: _storage._igpMplActive, fieldNumber: 7)
}
}
try unknownFields.traverse(visitor: &visitor)
}
Expand All @@ -358,6 +382,8 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP
if _storage._igpSecondaryNodeName != other_storage._igpSecondaryNodeName {return false}
if _storage._igpUpdateAvailable != other_storage._igpUpdateAvailable {return false}
if _storage._igpChatDeleteMessageForBothPeriod != other_storage._igpChatDeleteMessageForBothPeriod {return false}
if _storage._igpWalletActive != other_storage._igpWalletActive {return false}
if _storage._igpMplActive != other_storage._igpMplActive {return false}
return true
}
if !storagesAreEqual {return false}
Expand Down
277 changes: 277 additions & 0 deletions IGProtoBuff/ProtoBuffs/WalletPaymentInit.pb.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
// DO NOT EDIT.
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: WalletPaymentInit.proto
//
// For information on using the generated types, please see the documenation:
// https://github.com/apple/swift-protobuf/

import Foundation
import SwiftProtobuf

// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that your are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}

public struct IGPWalletPaymentInit: SwiftProtobuf.RequestMessage {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.

public var igpRequest: IGPRequest {
get {return _storage._igpRequest ?? IGPRequest()}
set {_uniqueStorage()._igpRequest = newValue}
}
/// Returns true if `igpRequest` has been explicitly set.
public var hasIgpRequest: Bool {return _storage._igpRequest != nil}
/// Clears the value of `igpRequest`. Subsequent reads from it will return its default value.
public mutating func clearIgpRequest() {_storage._igpRequest = nil}

public var igpLanguage: IGPLanguage {
get {return _storage._igpLanguage}
set {_uniqueStorage()._igpLanguage = newValue}
}

public var igpJwt: String {
get {return _storage._igpJwt}
set {_uniqueStorage()._igpJwt = newValue}
}

public var igpToUserID: Int64 {
get {return _storage._igpToUserID}
set {_uniqueStorage()._igpToUserID = newValue}
}

public var igpAmount: Int64 {
get {return _storage._igpAmount}
set {_uniqueStorage()._igpAmount = newValue}
}

public var igpDescription: String {
get {return _storage._igpDescription}
set {_uniqueStorage()._igpDescription = newValue}
}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}

fileprivate var _storage = _StorageClass.defaultInstance
}

public struct IGPWalletPaymentInitResponse: SwiftProtobuf.ResponseMessage {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.

public var igpResponse: IGPResponse {
get {return _storage._igpResponse ?? IGPResponse()}
set {_uniqueStorage()._igpResponse = newValue}
}
/// Returns true if `igpResponse` has been explicitly set.
public var hasIgpResponse: Bool {return _storage._igpResponse != nil}
/// Clears the value of `igpResponse`. Subsequent reads from it will return its default value.
public mutating func clearIgpResponse() {_storage._igpResponse = nil}

public var igpToken: String {
get {return _storage._igpToken}
set {_uniqueStorage()._igpToken = newValue}
}

public var igpPublicKey: String {
get {return _storage._igpPublicKey}
set {_uniqueStorage()._igpPublicKey = newValue}
}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}

fileprivate var _storage = _StorageClass.defaultInstance
}

// MARK: - Code below here is support for the SwiftProtobuf runtime.

extension IGPWalletPaymentInit: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = "IGPWalletPaymentInit"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_request"),
2: .standard(proto: "IGP_language"),
3: .standard(proto: "IGP_jwt"),
4: .standard(proto: "IGP_to_user_id"),
5: .standard(proto: "IGP_amount"),
6: .standard(proto: "IGP_description"),
]

fileprivate class _StorageClass {
var _igpRequest: IGPRequest? = nil
var _igpLanguage: IGPLanguage = .enUs
var _igpJwt: String = String()
var _igpToUserID: Int64 = 0
var _igpAmount: Int64 = 0
var _igpDescription: String = String()

static let defaultInstance = _StorageClass()

private init() {}

init(copying source: _StorageClass) {
_igpRequest = source._igpRequest
_igpLanguage = source._igpLanguage
_igpJwt = source._igpJwt
_igpToUserID = source._igpToUserID
_igpAmount = source._igpAmount
_igpDescription = source._igpDescription
}
}

fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest)
case 2: try decoder.decodeSingularEnumField(value: &_storage._igpLanguage)
case 3: try decoder.decodeSingularStringField(value: &_storage._igpJwt)
case 4: try decoder.decodeSingularInt64Field(value: &_storage._igpToUserID)
case 5: try decoder.decodeSingularInt64Field(value: &_storage._igpAmount)
case 6: try decoder.decodeSingularStringField(value: &_storage._igpDescription)
default: break
}
}
}
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._igpRequest {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if _storage._igpLanguage != .enUs {
try visitor.visitSingularEnumField(value: _storage._igpLanguage, fieldNumber: 2)
}
if !_storage._igpJwt.isEmpty {
try visitor.visitSingularStringField(value: _storage._igpJwt, fieldNumber: 3)
}
if _storage._igpToUserID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpToUserID, fieldNumber: 4)
}
if _storage._igpAmount != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpAmount, fieldNumber: 5)
}
if !_storage._igpDescription.isEmpty {
try visitor.visitSingularStringField(value: _storage._igpDescription, fieldNumber: 6)
}
}
try unknownFields.traverse(visitor: &visitor)
}

public func _protobuf_generated_isEqualTo(other: IGPWalletPaymentInit) -> Bool {
if _storage !== other._storage {
let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let other_storage = _args.1
if _storage._igpRequest != other_storage._igpRequest {return false}
if _storage._igpLanguage != other_storage._igpLanguage {return false}
if _storage._igpJwt != other_storage._igpJwt {return false}
if _storage._igpToUserID != other_storage._igpToUserID {return false}
if _storage._igpAmount != other_storage._igpAmount {return false}
if _storage._igpDescription != other_storage._igpDescription {return false}
return true
}
if !storagesAreEqual {return false}
}
if unknownFields != other.unknownFields {return false}
return true
}
}

extension IGPWalletPaymentInitResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = "IGPWalletPaymentInitResponse"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_response"),
2: .standard(proto: "IGP_token"),
3: .standard(proto: "IGP_public_key"),
]

fileprivate class _StorageClass {
var _igpResponse: IGPResponse? = nil
var _igpToken: String = String()
var _igpPublicKey: String = String()

static let defaultInstance = _StorageClass()

private init() {}

init(copying source: _StorageClass) {
_igpResponse = source._igpResponse
_igpToken = source._igpToken
_igpPublicKey = source._igpPublicKey
}
}

fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse)
case 2: try decoder.decodeSingularStringField(value: &_storage._igpToken)
case 3: try decoder.decodeSingularStringField(value: &_storage._igpPublicKey)
default: break
}
}
}
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._igpResponse {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !_storage._igpToken.isEmpty {
try visitor.visitSingularStringField(value: _storage._igpToken, fieldNumber: 2)
}
if !_storage._igpPublicKey.isEmpty {
try visitor.visitSingularStringField(value: _storage._igpPublicKey, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}

public func _protobuf_generated_isEqualTo(other: IGPWalletPaymentInitResponse) -> Bool {
if _storage !== other._storage {
let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let other_storage = _args.1
if _storage._igpResponse != other_storage._igpResponse {return false}
if _storage._igpToken != other_storage._igpToken {return false}
if _storage._igpPublicKey != other_storage._igpPublicKey {return false}
return true
}
if !storagesAreEqual {return false}
}
if unknownFields != other.unknownFields {return false}
return true
}
}

0 comments on commit 615a5fb

Please sign in to comment.