MonthServiceType
public protocol MonthServiceType : Sendable
Provides access to month operations
-
months(planId:Default implementation, asynchronouslastKnowledgeOfServer: ) Returns a list of plan months.
Default Implementation
Returns a list of plan months, with optional parameters defaulted.
Declaration
Swift
func months( planId: String, lastKnowledgeOfServer: ServerKnowledge? ) async throws -> MonthsResponseParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
lastKnowledgeOfServerIf provided, only entities that have changed since
lastKnowledgeOfServerwill be included.Return Value
A list of months and the knowledge of the server
-
month(planId:Asynchronousmonth: ) Returns a specific month for a plan.
Declaration
Swift
func month(planId: String, month: String) async throws -> MonthDetailParameters
planIdThe id of the plan (last_used can also be used to specify the last used plan)
monthThe plan month in ISO format (e.g. 2016-12-01) (current can also be used to specify the current calendar month (UTC))
Return Value
A single month
View on GitHub