Skip to content

Commit

Permalink
Merge pull request #21 from Enchan1207/issue/20-AccessibleCredentialP…
Browse files Browse the repository at this point in the history
…roperties

[Update #20] make credential properties public
  • Loading branch information
Enchan1207 authored Apr 11, 2021
2 parents bee555b + a1d4a09 commit 5d72a1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Sources/YoutubeKit/enums,structs/Credentials.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import Foundation
public extension YoutubeKit {
// API系
struct APICredential: Serializable{
let APIKey: String
let clientID: String
let clientSecret: String
public let APIKey: String
public let clientID: String
public let clientSecret: String

public init(apikey: String, clientID: String, clientSecret: String) {
self.APIKey = apikey
Expand All @@ -24,10 +24,10 @@ public extension YoutubeKit {

// ユーザ系
struct AccessCredential: Serializable{
var accessToken: String
var refreshToken: String
var expires: Date = Date()
var grantedScopes: [YoutubeKit.Scope] = []
internal (set) public var accessToken: String
internal (set) public var refreshToken: String
internal (set) public var expires: Date = Date()
internal (set) public var grantedScopes: [YoutubeKit.Scope] = []

public init(accessToken: String, refreshToken: String, expires: Date, grantedScopes: [YoutubeKit.Scope]){
self.accessToken = accessToken
Expand Down

0 comments on commit 5d72a1d

Please sign in to comment.