JtxContract

Types

Link copied to clipboard
object JtxAlarm
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object JtxComment
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object JtxUnknown

Properties

Link copied to clipboard
const val ACCOUNT_NAME: String

URI parameter to submit the account name of the account we operate on.

Link copied to clipboard
const val ACCOUNT_TYPE: String

URI parameter to submit the account type of the account we operate on.

Link copied to clipboard
const val AUTHORITY: String

The authority under which the content provider can be accessed

Link copied to clipboard

URI parameter to signal that the caller is a sync adapter.

Link copied to clipboard
const val VERSION: Int = 7

The version of this SyncContentProviderContract

Functions

Link copied to clipboard
fun Uri.asSyncAdapter(account: Account): Uri

Constructs an Uri for the Jtx Sync Adapter with the given Account

Link copied to clipboard
fun getJsonStringFromXParameters(parameters: ParameterList?): String?

Takes a Parameter List and returns a Json String to be saved in a DB field. This is the counterpart to getXParameterFromJson(...)

Link copied to clipboard
fun getJsonStringFromXProperties(propertyList: PropertyList<*>?): String?

Takes a Property List and returns a Json String to be saved in a DB field. This is the counterpart to getXPropertyListFromJson(...)

Link copied to clipboard

Some date fields in jtx Board are saved as a list of Long values separated by commas. This applies for example to the exdate for recurring events. This function takes a string and tries to parse it to a list of long values (timestamps)

Link copied to clipboard
fun getXParametersFromJson(string: String): List<XParameter>

This function takes a string and tries to parse it to a list of XParameters. This is the counterpart of getJsonStringFromXParameters(...)

Link copied to clipboard
fun getXPropertyListFromJson(string: String): PropertyList<Property>

This function takes a string and tries to parse it to a list of XProperty. This is the counterpart of getJsonStringFromXProperties(...)