This repository was archived by the owner on Apr 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -59,27 +59,27 @@ public struct StudyplusRecord {
59
59
The seconds of the learning.
60
60
勉強した時間(秒数)です。
61
61
*/
62
- public private ( set ) var duration : Double
62
+ public let duration : Double
63
63
64
64
/**
65
65
The date and time of learning.
66
66
勉強した日時です。
67
67
*/
68
- public private ( set ) var recordedAt : Date
68
+ public let recordedAt : Date
69
69
70
70
/**
71
71
The amount of learning.
72
72
勉強した量です。
73
73
74
74
see StudyplusRecordAmount
75
75
*/
76
- public private ( set ) var amount : StudyplusRecordAmount ?
76
+ public let amount : StudyplusRecordAmount ?
77
77
78
78
/**
79
79
The comment of learning.
80
80
勉強に関するコメントです。
81
81
*/
82
- public private ( set ) var comment : String ?
82
+ public let comment : String ?
83
83
84
84
/// Initialize StudyplusRecord object.
85
85
///
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ public struct StudyplusRecordAmount {
38
38
39
39
学習量
40
40
*/
41
- public private ( set ) var amount : UInt ?
41
+ public let amount : UInt ?
42
42
43
43
/**
44
44
Range of learning amount.
45
45
46
46
学習範囲
47
47
*/
48
- public private ( set ) var range : ( from: UInt , to: UInt ) ?
48
+ public let range : ( from: UInt , to: UInt ) ?
49
49
50
50
/// Initialize the Amount object with only the total amount of learning.
51
51
///
@@ -54,6 +54,7 @@ public struct StudyplusRecordAmount {
54
54
/// - Parameter amount: learning amount. 学習量。
55
55
public init ( amount: UInt ) {
56
56
self . amount = amount
57
+ self . range = nil
57
58
}
58
59
59
60
/// Initialize the Amount object with a range of learning amount.
@@ -67,6 +68,7 @@ public struct StudyplusRecordAmount {
67
68
return nil
68
69
}
69
70
71
+ self . amount = nil
70
72
self . range = range
71
73
}
72
74
You can’t perform that action at this time.
0 commit comments