Skip to content

Commit

Permalink
updated the access modifiers of all classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ricomonster committed Mar 1, 2017
1 parent 506a178 commit 596d0ba
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion GlobeConnectSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "GlobeConnectSwift"
s.version = "1.0.1"
s.version = "1.1.0"
s.summary = "Globe Connect for Swift."

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 3 additions & 3 deletions Sources/Amax.swift
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import Foundation

struct Amax {
public struct Amax {
let appId: String
let appSecret: String

typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public init(appId: String, appSecret: String) {
init(appId: String, appSecret: String) {
self.appId = appId;
self.appSecret = appSecret
}

public func sendRewardRequest(
func sendRewardRequest(
address: String,
promo: String,
rewardsToken: String,
Expand Down
6 changes: 3 additions & 3 deletions Sources/Authentication.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Foundation

struct Authentication {
public struct Authentication {
typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public func getAccessToken(
func getAccessToken(
appId: String,
appSecret: String,
code: String,
Expand Down Expand Up @@ -56,7 +56,7 @@ struct Authentication {
)
}

public func getDialogUrl(appId: String) -> String {
func getDialogUrl(appId: String) -> String {
let redirectUrl: String = "https://developer.globelabs.com.ph/dialog/oauth?app_id=\(appId)"

return redirectUrl
Expand Down
6 changes: 3 additions & 3 deletions Sources/LocationQuery.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Foundation

struct LocationQuery {
public struct LocationQuery {
let accessToken: String

typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public init(accessToken: String) {
init(accessToken: String) {
self.accessToken = accessToken
}

public func getLocation(
func getLocation(
address: String,
accuracy: Int = 10,
success: SuccessHandler? = nil,
Expand Down
8 changes: 4 additions & 4 deletions Sources/Payment.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import Foundation

struct Payment {
public struct Payment {
let accessToken: String
let appId: String
let appSecret: String

typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public init(
init(
appId: String,
appSecret: String,
accessToken: String? = nil
Expand All @@ -18,7 +18,7 @@ struct Payment {
self.accessToken = accessToken!
}

public func sendPaymentRequest(
func sendPaymentRequest(
amount: Float,
description: String,
endUserId: String,
Expand Down Expand Up @@ -81,7 +81,7 @@ struct Payment {
}
}

public func getLastReferenceCode(
func getLastReferenceCode(
success: SuccessHandler? = nil,
failure: ErrorHandler? = nil
) -> Void {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Request.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

struct Request {
public struct Request {
typealias RequestCallback = ((Data?, Any?, Any?) -> ())

func get(
Expand Down
8 changes: 4 additions & 4 deletions Sources/Sms.swift
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import Foundation

struct Sms {
public struct Sms {
let accessToken: String
let shortCode: String

typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public init(accessToken: String, shortCode: String) {
init(accessToken: String, shortCode: String) {
self.accessToken = accessToken
self.shortCode = shortCode
}

public func sendBinaryMessage(
func sendBinaryMessage(
address: String,
message: String,
header: String,
Expand Down Expand Up @@ -78,7 +78,7 @@ struct Sms {
}
}

public func sendMessage(
func sendMessage(
address: String,
message: String,
clientCorrelator: String? = nil,
Expand Down
8 changes: 4 additions & 4 deletions Sources/Subscriber.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Foundation

struct Subscriber {
public struct Subscriber {
let accessToken: String

typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public init(accessToken: String) {
init(accessToken: String) {
self.accessToken = accessToken
}

public func getSubscriberBalance(
func getSubscriberBalance(
address: String,
success: SuccessHandler? = nil,
failure: ErrorHandler? = nil
Expand Down Expand Up @@ -44,7 +44,7 @@ struct Subscriber {
)
}

public func getSubscriberReloadAmount(
func getSubscriberReloadAmount(
address: String,
success: SuccessHandler? = nil,
failure: ErrorHandler? = nil
Expand Down
8 changes: 4 additions & 4 deletions Sources/Ussd.swift
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import Foundation

struct Ussd {
public struct Ussd {
let accessToken: String
let shortCode: String

typealias SuccessHandler = (JSON) -> Void
typealias ErrorHandler = (_ error: Error) -> Void

public init(accessToken: String, shortCode: String) {
init(accessToken: String, shortCode: String) {
self.accessToken = accessToken
self.shortCode = shortCode
}

public func sendUssdRequest(
func sendUssdRequest(
address: String,
message: String,
flash: Bool,
Expand Down Expand Up @@ -75,7 +75,7 @@ struct Ussd {
}
}

public func replyUssdRequest(
func replyUssdRequest(
address: String,
message: String,
sessionId: String,
Expand Down
2 changes: 1 addition & 1 deletion Tests/GlobeConnectTests/GlobeConnectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class GlobeConnectTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
XCTAssertEqual(GlobeConnect().text, "Hello, World!")
//XCTAssertEqual(GlobeConnect().text, "Hello, World!")
}


Expand Down

0 comments on commit 596d0ba

Please sign in to comment.