Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 8296445

Browse files
須藤将史須藤将史
authored andcommitted
change private(set) to let
1 parent 23a50f5 commit 8296445

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

StudyplusSDK/StudyplusRecord.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,27 @@ public struct StudyplusRecord {
5959
The seconds of the learning.
6060
勉強した時間(秒数)です。
6161
*/
62-
public private(set) var duration: Double
62+
public let duration: Double
6363

6464
/**
6565
The date and time of learning.
6666
勉強した日時です。
6767
*/
68-
public private(set) var recordedAt: Date
68+
public let recordedAt: Date
6969

7070
/**
7171
The amount of learning.
7272
勉強した量です。
7373

7474
see StudyplusRecordAmount
7575
*/
76-
public private(set) var amount: StudyplusRecordAmount?
76+
public let amount: StudyplusRecordAmount?
7777

7878
/**
7979
The comment of learning.
8080
勉強に関するコメントです。
8181
*/
82-
public private(set) var comment: String?
82+
public let comment: String?
8383

8484
/// Initialize StudyplusRecord object.
8585
///

StudyplusSDK/StudyplusRecordAmount.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public struct StudyplusRecordAmount {
3838

3939
学習量
4040
*/
41-
public private(set) var amount: UInt?
41+
public let amount: UInt?
4242

4343
/**
4444
Range of learning amount.
4545

4646
学習範囲
4747
*/
48-
public private(set) var range: (from: UInt, to: UInt)?
48+
public let range: (from: UInt, to: UInt)?
4949

5050
/// Initialize the Amount object with only the total amount of learning.
5151
///
@@ -54,6 +54,7 @@ public struct StudyplusRecordAmount {
5454
/// - Parameter amount: learning amount. 学習量。
5555
public init(amount: UInt) {
5656
self.amount = amount
57+
self.range = nil
5758
}
5859

5960
/// Initialize the Amount object with a range of learning amount.
@@ -67,6 +68,7 @@ public struct StudyplusRecordAmount {
6768
return nil
6869
}
6970

71+
self.amount = nil
7072
self.range = range
7173
}
7274

0 commit comments

Comments
 (0)