Documentation ¶
Index ¶
- Constants
- type IamErrorResponse
- type ModelChallengeResponse
- type ModelClaimUserRewardsReq
- type ModelCreateChallengeRequest
- type ModelCreateGoalRequest
- type ModelEvaluatePlayerProgressionRequest
- type ModelGetGoalsResponse
- type ModelGoalOrder
- type ModelGoalProgressionResponse
- type ModelGoalResponse
- type ModelGoalSchedule
- type ModelListChallengeResponse
- type ModelListPeriodsResponse
- type ModelListUserRewardsResponse
- type ModelPagination
- type ModelPredicate
- type ModelRequirement
- type ModelRequirementProgressionResponse
- type ModelReward
- type ModelSchedule
- type ModelUpdateGoalRequest
- type ModelUserProgressionResponse
- type ModelUserProgressionResponseMeta
- type ModelUserReward
- type ModelsPeriod
- type ModelsUpdateChallengeRequest
- type ResponseError
Constants ¶
const ( // ModelChallengeResponseAssignmentRuleFIXED captures enum value "FIXED" ModelChallengeResponseAssignmentRuleFIXED string = "FIXED" // ModelChallengeResponseAssignmentRuleRANDOMIZED captures enum value "RANDOMIZED" ModelChallengeResponseAssignmentRuleRANDOMIZED string = "RANDOMIZED" // ModelChallengeResponseAssignmentRuleUNSCHEDULED captures enum value "UNSCHEDULED" ModelChallengeResponseAssignmentRuleUNSCHEDULED string = "UNSCHEDULED" )
const ( // ModelChallengeResponseGoalsVisibilityPERIODONLY captures enum value "PERIODONLY" ModelChallengeResponseGoalsVisibilityPERIODONLY string = "PERIODONLY" // ModelChallengeResponseGoalsVisibilitySHOWALL captures enum value "SHOWALL" ModelChallengeResponseGoalsVisibilitySHOWALL string = "SHOWALL" )
const ( // ModelChallengeResponseRotationDAILY captures enum value "DAILY" ModelChallengeResponseRotationDAILY string = "DAILY" // ModelChallengeResponseRotationMONTHLY captures enum value "MONTHLY" ModelChallengeResponseRotationMONTHLY string = "MONTHLY" // ModelChallengeResponseRotationNONE captures enum value "NONE" ModelChallengeResponseRotationNONE string = "NONE" // ModelChallengeResponseRotationWEEKLY captures enum value "WEEKLY" ModelChallengeResponseRotationWEEKLY string = "WEEKLY" )
const ( // ModelChallengeResponseStatusINIT captures enum value "INIT" ModelChallengeResponseStatusINIT string = "INIT" // ModelChallengeResponseStatusRETIRED captures enum value "RETIRED" ModelChallengeResponseStatusRETIRED string = "RETIRED" // ModelChallengeResponseStatusTIED captures enum value "TIED" ModelChallengeResponseStatusTIED string = "TIED" )
const ( // ModelCreateChallengeRequestAssignmentRuleFIXED captures enum value "FIXED" ModelCreateChallengeRequestAssignmentRuleFIXED string = "FIXED" // ModelCreateChallengeRequestAssignmentRuleRANDOMIZED captures enum value "RANDOMIZED" ModelCreateChallengeRequestAssignmentRuleRANDOMIZED string = "RANDOMIZED" // ModelCreateChallengeRequestAssignmentRuleUNSCHEDULED captures enum value "UNSCHEDULED" ModelCreateChallengeRequestAssignmentRuleUNSCHEDULED string = "UNSCHEDULED" )
const ( // ModelCreateChallengeRequestGoalsVisibilityPERIODONLY captures enum value "PERIODONLY" ModelCreateChallengeRequestGoalsVisibilityPERIODONLY string = "PERIODONLY" // ModelCreateChallengeRequestGoalsVisibilitySHOWALL captures enum value "SHOWALL" ModelCreateChallengeRequestGoalsVisibilitySHOWALL string = "SHOWALL" )
const ( // ModelCreateChallengeRequestRotationDAILY captures enum value "DAILY" ModelCreateChallengeRequestRotationDAILY string = "DAILY" // ModelCreateChallengeRequestRotationMONTHLY captures enum value "MONTHLY" ModelCreateChallengeRequestRotationMONTHLY string = "MONTHLY" // ModelCreateChallengeRequestRotationNONE captures enum value "NONE" ModelCreateChallengeRequestRotationNONE string = "NONE" // ModelCreateChallengeRequestRotationWEEKLY captures enum value "WEEKLY" ModelCreateChallengeRequestRotationWEEKLY string = "WEEKLY" )
const ( // ModelGoalProgressionResponseStatusACTIVE captures enum value "ACTIVE" ModelGoalProgressionResponseStatusACTIVE string = "ACTIVE" // ModelGoalProgressionResponseStatusCOMPLETED captures enum value "COMPLETED" ModelGoalProgressionResponseStatusCOMPLETED string = "COMPLETED" // ModelGoalProgressionResponseStatusRETIRED captures enum value "RETIRED" ModelGoalProgressionResponseStatusRETIRED string = "RETIRED" )
const ( // ModelPredicateMatcherEQUAL captures enum value "EQUAL" ModelPredicateMatcherEQUAL string = "EQUAL" // ModelPredicateMatcherGREATERTHAN captures enum value "GREATER_THAN" ModelPredicateMatcherGREATERTHAN string = "GREATER_THAN" // ModelPredicateMatcherGREATERTHANEQUAL captures enum value "GREATER_THAN_EQUAL" ModelPredicateMatcherGREATERTHANEQUAL string = "GREATER_THAN_EQUAL" // ModelPredicateMatcherLESSTHAN captures enum value "LESS_THAN" ModelPredicateMatcherLESSTHAN string = "LESS_THAN" // ModelPredicateMatcherLESSTHANEQUAL captures enum value "LESS_THAN_EQUAL" ModelPredicateMatcherLESSTHANEQUAL string = "LESS_THAN_EQUAL" )
const ( // ModelPredicateParameterTypeACHIEVEMENT captures enum value "ACHIEVEMENT" ModelPredicateParameterTypeACHIEVEMENT string = "ACHIEVEMENT" // ModelPredicateParameterTypeSTATISTIC captures enum value "STATISTIC" ModelPredicateParameterTypeSTATISTIC string = "STATISTIC" // ModelPredicateParameterTypeUSERACCOUNT captures enum value "USERACCOUNT" ModelPredicateParameterTypeUSERACCOUNT string = "USERACCOUNT" )
const ( // ModelRewardTypeENTITLEMENT captures enum value "ENTITLEMENT" ModelRewardTypeENTITLEMENT string = "ENTITLEMENT" // ModelRewardTypeSTATISTIC captures enum value "STATISTIC" ModelRewardTypeSTATISTIC string = "STATISTIC" )
const ( // ModelsUpdateChallengeRequestAssignmentRuleFIXED captures enum value "FIXED" ModelsUpdateChallengeRequestAssignmentRuleFIXED string = "FIXED" // ModelsUpdateChallengeRequestAssignmentRuleRANDOMIZED captures enum value "RANDOMIZED" ModelsUpdateChallengeRequestAssignmentRuleRANDOMIZED string = "RANDOMIZED" // ModelsUpdateChallengeRequestAssignmentRuleUNSCHEDULED captures enum value "UNSCHEDULED" ModelsUpdateChallengeRequestAssignmentRuleUNSCHEDULED string = "UNSCHEDULED" )
const ( // ModelsUpdateChallengeRequestGoalsVisibilityPERIODONLY captures enum value "PERIODONLY" ModelsUpdateChallengeRequestGoalsVisibilityPERIODONLY string = "PERIODONLY" // ModelsUpdateChallengeRequestGoalsVisibilitySHOWALL captures enum value "SHOWALL" ModelsUpdateChallengeRequestGoalsVisibilitySHOWALL string = "SHOWALL" )
const ( // ModelsUpdateChallengeRequestRotationDAILY captures enum value "DAILY" ModelsUpdateChallengeRequestRotationDAILY string = "DAILY" // ModelsUpdateChallengeRequestRotationMONTHLY captures enum value "MONTHLY" ModelsUpdateChallengeRequestRotationMONTHLY string = "MONTHLY" // ModelsUpdateChallengeRequestRotationNONE captures enum value "NONE" ModelsUpdateChallengeRequestRotationNONE string = "NONE" // ModelsUpdateChallengeRequestRotationWEEKLY captures enum value "WEEKLY" ModelsUpdateChallengeRequestRotationWEEKLY string = "WEEKLY" )
const ( // ModelRequirementOperatorAND captures enum value "AND" ModelRequirementOperatorAND string = "AND" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IamErrorResponse ¶
type IamErrorResponse struct { // errorcode // Required: true // Format: int32 ErrorCode *int32 `json:"errorCode"` // errormessage // Required: true ErrorMessage *string `json:"errorMessage"` }
IamErrorResponse Iam error response
swagger:model Iam error response.
func (*IamErrorResponse) MarshalBinary ¶
func (m *IamErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IamErrorResponse) UnmarshalBinary ¶
func (m *IamErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelChallengeResponse ¶
type ModelChallengeResponse struct { // activegoalsperrotation // Required: true // Format: int32 ActiveGoalsPerRotation *int32 `json:"activeGoalsPerRotation"` // assignmentrule // Enum: ['FIXED', 'RANDOMIZED', 'UNSCHEDULED'] // Required: true AssignmentRule *string `json:"assignmentRule"` // code // Required: true Code *string `json:"code"` // createdat // Required: true CreatedAt *string `json:"createdAt"` // description // Required: true Description *string `json:"description"` // endafter // Format: int32 EndAfter int32 `json:"endAfter,omitempty"` // enddate EndDate string `json:"endDate,omitempty"` // goalsvisibility // Enum: ['PERIODONLY', 'SHOWALL'] // Required: true GoalsVisibility *string `json:"goalsVisibility"` // name // Required: true Name *string `json:"name"` // rotation // Enum: ['DAILY', 'MONTHLY', 'NONE', 'WEEKLY'] // Required: true Rotation *string `json:"rotation"` // startdate // Required: true StartDate *string `json:"startDate"` // status // Enum: ['INIT', 'RETIRED', 'TIED'] // Required: true Status *string `json:"status"` // updatedat // Required: true UpdatedAt *string `json:"updatedAt"` }
ModelChallengeResponse Model challenge response
swagger:model Model challenge response.
func (*ModelChallengeResponse) MarshalBinary ¶
func (m *ModelChallengeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelChallengeResponse) UnmarshalBinary ¶
func (m *ModelChallengeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelClaimUserRewardsReq ¶
type ModelClaimUserRewardsReq struct { // max 100 items // Required: true RewardIDs []string `json:"rewardIDs"` }
ModelClaimUserRewardsReq Model claim user rewards req
swagger:model Model claim user rewards req.
func (*ModelClaimUserRewardsReq) MarshalBinary ¶
func (m *ModelClaimUserRewardsReq) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelClaimUserRewardsReq) UnmarshalBinary ¶
func (m *ModelClaimUserRewardsReq) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelCreateChallengeRequest ¶
type ModelCreateChallengeRequest struct { // activegoalsperrotation // Format: int32 ActiveGoalsPerRotation int32 `json:"activeGoalsPerRotation,omitempty"` // assignmentrule // Enum: ['FIXED', 'RANDOMIZED', 'UNSCHEDULED'] // Required: true AssignmentRule *string `json:"assignmentRule"` // only lowercase letters, numbers, and the separator - are allowed; must start and end with letter // Required: true Code *string `json:"code"` // description Description string `json:"description,omitempty"` // endafter // Format: int32 EndAfter int32 `json:"endAfter,omitempty"` // enddate // Format: date-time EndDate *strfmt.DateTime `json:"endDate,omitempty"` // goalsvisibility // Enum: ['PERIODONLY', 'SHOWALL'] // Required: true GoalsVisibility *string `json:"goalsVisibility"` // name // Required: true Name *string `json:"name"` // rotation // Enum: ['DAILY', 'MONTHLY', 'NONE', 'WEEKLY'] // Required: true Rotation *string `json:"rotation"` // startdate // Required: true // Format: date-time StartDate strfmt.DateTime `json:"startDate"` }
ModelCreateChallengeRequest Model create challenge request
swagger:model Model create challenge request.
func (*ModelCreateChallengeRequest) MarshalBinary ¶
func (m *ModelCreateChallengeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelCreateChallengeRequest) UnmarshalBinary ¶
func (m *ModelCreateChallengeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelCreateGoalRequest ¶
type ModelCreateGoalRequest struct { // code // Required: true Code *string `json:"code"` // description Description string `json:"description,omitempty"` // isactive // Required: true IsActive *bool `json:"isActive"` // name // Required: true Name *string `json:"name"` // requirementgroups RequirementGroups []*ModelRequirement `json:"requirementGroups,omitempty"` // rewards Rewards []*ModelReward `json:"rewards,omitempty"` // schedule Schedule *ModelGoalSchedule `json:"schedule,omitempty"` // tags Tags []string `json:"tags,omitempty"` }
ModelCreateGoalRequest Model create goal request
swagger:model Model create goal request.
func (*ModelCreateGoalRequest) MarshalBinary ¶
func (m *ModelCreateGoalRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelCreateGoalRequest) UnmarshalBinary ¶
func (m *ModelCreateGoalRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelEvaluatePlayerProgressionRequest ¶
type ModelEvaluatePlayerProgressionRequest struct { // userids UserIds []string `json:"userIds,omitempty"` }
ModelEvaluatePlayerProgressionRequest Model evaluate player progression request
swagger:model Model evaluate player progression request.
func (*ModelEvaluatePlayerProgressionRequest) MarshalBinary ¶
func (m *ModelEvaluatePlayerProgressionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelEvaluatePlayerProgressionRequest) UnmarshalBinary ¶
func (m *ModelEvaluatePlayerProgressionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelGetGoalsResponse ¶
type ModelGetGoalsResponse struct { // data // Required: true Data []*ModelGoalResponse `json:"data"` // paging // Required: true Paging *ModelPagination `json:"paging"` }
ModelGetGoalsResponse Model get goals response
swagger:model Model get goals response.
func (*ModelGetGoalsResponse) MarshalBinary ¶
func (m *ModelGetGoalsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelGetGoalsResponse) UnmarshalBinary ¶
func (m *ModelGetGoalsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelGoalOrder ¶
type ModelGoalOrder struct { // goal // Required: true Goal *ModelGoalResponse `json:"goal"` // order // Required: true // Format: int32 Order *int32 `json:"order"` }
ModelGoalOrder Model goal order
swagger:model Model goal order.
func (*ModelGoalOrder) MarshalBinary ¶
func (m *ModelGoalOrder) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelGoalOrder) UnmarshalBinary ¶
func (m *ModelGoalOrder) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelGoalProgressionResponse ¶
type ModelGoalProgressionResponse struct { // challengecode // Required: true ChallengeCode *string `json:"challengeCode"` // goalcode // Required: true GoalCode *string `json:"goalCode"` // goalprogressionid // Required: true GoalProgressionID *string `json:"goalProgressionId"` // requirementprogressions // Required: true RequirementProgressions []*ModelRequirementProgressionResponse `json:"requirementProgressions"` // status // Enum: ['ACTIVE', 'COMPLETED', 'RETIRED'] // Required: true Status *string `json:"status"` }
ModelGoalProgressionResponse Model goal progression response
swagger:model Model goal progression response.
func (*ModelGoalProgressionResponse) MarshalBinary ¶
func (m *ModelGoalProgressionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelGoalProgressionResponse) UnmarshalBinary ¶
func (m *ModelGoalProgressionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelGoalResponse ¶
type ModelGoalResponse struct { // challengecode // Required: true ChallengeCode *string `json:"challengeCode"` // code // Required: true Code *string `json:"code"` // createdat // Required: true CreatedAt *string `json:"createdAt"` // description // Required: true Description *string `json:"description"` // isactive // Required: true IsActive *bool `json:"isActive"` // name // Required: true Name *string `json:"name"` // namespace // Required: true Namespace *string `json:"namespace"` // requirementgroups // Required: true RequirementGroups []*ModelRequirement `json:"requirementGroups"` // rewards // Required: true Rewards []*ModelReward `json:"rewards"` // schedule Schedule *ModelGoalSchedule `json:"schedule,omitempty"` // tags Tags []string `json:"tags,omitempty"` // updatedat // Required: true UpdatedAt *string `json:"updatedAt"` }
ModelGoalResponse Model goal response
swagger:model Model goal response.
func (*ModelGoalResponse) MarshalBinary ¶
func (m *ModelGoalResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelGoalResponse) UnmarshalBinary ¶
func (m *ModelGoalResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelGoalSchedule ¶
type ModelGoalSchedule struct { // endtime // Format: date-time EndTime *strfmt.DateTime `json:"endTime,omitempty"` // order // Required: true // Format: int32 Order *int32 `json:"order"` // starttime // Required: true // Format: date-time StartTime strfmt.DateTime `json:"startTime"` }
ModelGoalSchedule Model goal schedule
swagger:model Model goal schedule.
func (*ModelGoalSchedule) MarshalBinary ¶
func (m *ModelGoalSchedule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelGoalSchedule) UnmarshalBinary ¶
func (m *ModelGoalSchedule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelListChallengeResponse ¶
type ModelListChallengeResponse struct { // data // Required: true Data []*ModelChallengeResponse `json:"data"` // paging // Required: true Paging *ModelPagination `json:"paging"` }
ModelListChallengeResponse Model list challenge response
swagger:model Model list challenge response.
func (*ModelListChallengeResponse) MarshalBinary ¶
func (m *ModelListChallengeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelListChallengeResponse) UnmarshalBinary ¶
func (m *ModelListChallengeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelListPeriodsResponse ¶
type ModelListPeriodsResponse struct { // data // Required: true Data []*ModelsPeriod `json:"data"` // paging // Required: true Paging *ModelPagination `json:"paging"` }
ModelListPeriodsResponse Model list periods response
swagger:model Model list periods response.
func (*ModelListPeriodsResponse) MarshalBinary ¶
func (m *ModelListPeriodsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelListPeriodsResponse) UnmarshalBinary ¶
func (m *ModelListPeriodsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelListUserRewardsResponse ¶
type ModelListUserRewardsResponse struct { // data // Required: true Data []*ModelUserReward `json:"data"` // paging // Required: true Paging *ModelPagination `json:"paging"` }
ModelListUserRewardsResponse Model list user rewards response
swagger:model Model list user rewards response.
func (*ModelListUserRewardsResponse) MarshalBinary ¶
func (m *ModelListUserRewardsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelListUserRewardsResponse) UnmarshalBinary ¶
func (m *ModelListUserRewardsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelPagination ¶
type ModelPagination struct { // first // Required: true First *string `json:"first"` // last // Required: true Last *string `json:"last"` // next // Required: true Next *string `json:"next"` // previous // Required: true Previous *string `json:"previous"` }
ModelPagination Model pagination
swagger:model Model pagination.
func (*ModelPagination) MarshalBinary ¶
func (m *ModelPagination) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelPagination) UnmarshalBinary ¶
func (m *ModelPagination) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelPredicate ¶
type ModelPredicate struct { // matcher // Enum: ['EQUAL', 'GREATER_THAN', 'GREATER_THAN_EQUAL', 'LESS_THAN', 'LESS_THAN_EQUAL'] // Required: true Matcher *string `json:"matcher"` // parametername // Required: true ParameterName *string `json:"parameterName"` // parametertype // Enum: ['ACHIEVEMENT', 'STATISTIC', 'USERACCOUNT'] // Required: true ParameterType *string `json:"parameterType"` // targetvalue // Required: true // Format: double TargetValue *float64 `json:"targetValue"` }
ModelPredicate Model predicate
swagger:model Model predicate.
func (*ModelPredicate) MarshalBinary ¶
func (m *ModelPredicate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelPredicate) UnmarshalBinary ¶
func (m *ModelPredicate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelRequirement ¶
type ModelRequirement struct { // operator // Enum: ['AND'] // Required: true Operator *string `json:"operator"` // predicates // Required: true Predicates []*ModelPredicate `json:"predicates"` }
ModelRequirement Model requirement
swagger:model Model requirement.
func (*ModelRequirement) MarshalBinary ¶
func (m *ModelRequirement) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelRequirement) UnmarshalBinary ¶
func (m *ModelRequirement) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelRequirementProgressionResponse ¶
type ModelRequirementProgressionResponse struct { // completedat CompletedAt string `json:"completedAt,omitempty"` // currrentvalue // Format: double CurrrentValue float64 `json:"currrentValue,omitempty"` // id // Required: true ID *string `json:"id"` // targetvalue // Required: true // Format: double TargetValue *float64 `json:"targetValue"` }
ModelRequirementProgressionResponse Model requirement progression response
swagger:model Model requirement progression response.
func (*ModelRequirementProgressionResponse) MarshalBinary ¶
func (m *ModelRequirementProgressionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelRequirementProgressionResponse) UnmarshalBinary ¶
func (m *ModelRequirementProgressionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelReward ¶
type ModelReward struct { // itemid // Required: true ItemID *string `json:"itemId"` // itemname // Required: true ItemName *string `json:"itemName"` // qty // Required: true // Format: float Qty *float32 `json:"qty"` // type // Enum: ['ENTITLEMENT', 'STATISTIC'] // Required: true Type *string `json:"type"` }
ModelReward Model reward
swagger:model Model reward.
func (*ModelReward) MarshalBinary ¶
func (m *ModelReward) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelReward) UnmarshalBinary ¶
func (m *ModelReward) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelSchedule ¶
type ModelSchedule struct { // challengecode // Required: true ChallengeCode *string `json:"challengeCode"` // createdat // Required: true CreatedAt *string `json:"createdAt"` // endtime // Required: true EndTime *string `json:"endTime"` // goals // Required: true Goals []*ModelGoalOrder `json:"goals"` // namespace // Required: true Namespace *string `json:"namespace"` // starttime // Required: true StartTime *string `json:"startTime"` // updatedat // Required: true UpdatedAt *string `json:"updatedAt"` }
ModelSchedule Model schedule
swagger:model Model schedule.
func (*ModelSchedule) MarshalBinary ¶
func (m *ModelSchedule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelSchedule) UnmarshalBinary ¶
func (m *ModelSchedule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelUpdateGoalRequest ¶
type ModelUpdateGoalRequest struct { // description // Required: true Description *string `json:"description"` // isactive // Required: true IsActive *bool `json:"isActive"` // name // Required: true Name *string `json:"name"` // requirementgroups // Required: true RequirementGroups []*ModelRequirement `json:"requirementGroups"` // rewards // Required: true Rewards []*ModelReward `json:"rewards"` // schedule Schedule *ModelGoalSchedule `json:"schedule,omitempty"` // tags // Required: true Tags []string `json:"tags"` }
ModelUpdateGoalRequest Model update goal request
swagger:model Model update goal request.
func (*ModelUpdateGoalRequest) MarshalBinary ¶
func (m *ModelUpdateGoalRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelUpdateGoalRequest) UnmarshalBinary ¶
func (m *ModelUpdateGoalRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelUserProgressionResponse ¶
type ModelUserProgressionResponse struct { // data // Required: true Data []*ModelGoalProgressionResponse `json:"data"` // meta // Required: true Meta *ModelUserProgressionResponseMeta `json:"meta"` }
ModelUserProgressionResponse Model user progression response
swagger:model Model user progression response.
func (*ModelUserProgressionResponse) MarshalBinary ¶
func (m *ModelUserProgressionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelUserProgressionResponse) UnmarshalBinary ¶
func (m *ModelUserProgressionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelUserProgressionResponseMeta ¶
type ModelUserProgressionResponseMeta struct { // code // Required: true Code *string `json:"code"` // description // Required: true Description *string `json:"description"` // enddate EndDate string `json:"endDate,omitempty"` // name // Required: true Name *string `json:"name"` // startdate // Required: true StartDate *string `json:"startDate"` // userid // Required: true UserID *string `json:"userId"` }
ModelUserProgressionResponseMeta Model user progression response meta
swagger:model Model user progression response meta.
func (*ModelUserProgressionResponseMeta) MarshalBinary ¶
func (m *ModelUserProgressionResponseMeta) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelUserProgressionResponseMeta) UnmarshalBinary ¶
func (m *ModelUserProgressionResponseMeta) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelUserReward ¶
type ModelUserReward struct { // challengecode // Required: true ChallengeCode *string `json:"challengeCode"` // createdat // Required: true CreatedAt *string `json:"createdAt"` // goalcode // Required: true GoalCode *string `json:"goalCode"` // id // Required: true ID *string `json:"id"` // itemid // Required: true ItemID *string `json:"itemId"` // itemname // Required: true ItemName *string `json:"itemName"` // qty // Required: true // Format: float Qty *float32 `json:"qty"` // status // Required: true Status *string `json:"status"` // type // Required: true Type *string `json:"type"` // updatedat // Required: true UpdatedAt *string `json:"updatedAt"` // userid // Required: true UserID *string `json:"userId"` }
ModelUserReward Model user reward
swagger:model Model user reward.
func (*ModelUserReward) MarshalBinary ¶
func (m *ModelUserReward) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelUserReward) UnmarshalBinary ¶
func (m *ModelUserReward) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsPeriod ¶
type ModelsPeriod struct { // endtime // Required: true // Format: date-time EndTime strfmt.DateTime `json:"endTime"` // slot // Required: true // Format: int32 Slot *int32 `json:"slot"` // starttime // Required: true // Format: date-time StartTime strfmt.DateTime `json:"startTime"` }
ModelsPeriod Models period
swagger:model Models period.
func (*ModelsPeriod) MarshalBinary ¶
func (m *ModelsPeriod) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsPeriod) UnmarshalBinary ¶
func (m *ModelsPeriod) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelsUpdateChallengeRequest ¶
type ModelsUpdateChallengeRequest struct { // activegoalsperrotation // Format: int32 ActiveGoalsPerRotation int32 `json:"activeGoalsPerRotation,omitempty"` // assignmentrule // Enum: ['FIXED', 'RANDOMIZED', 'UNSCHEDULED'] AssignmentRule string `json:"assignmentRule,omitempty"` // description Description string `json:"description,omitempty"` // endafter // Format: int32 EndAfter int32 `json:"endAfter,omitempty"` // enddate // Format: date-time EndDate *strfmt.DateTime `json:"endDate,omitempty"` // goalsvisibility // Enum: ['PERIODONLY', 'SHOWALL'] GoalsVisibility string `json:"goalsVisibility,omitempty"` // name Name string `json:"name,omitempty"` // rotation // Enum: ['DAILY', 'MONTHLY', 'NONE', 'WEEKLY'] Rotation string `json:"rotation,omitempty"` // startdate // Format: date-time StartDate *strfmt.DateTime `json:"startDate,omitempty"` }
ModelsUpdateChallengeRequest Models update challenge request
swagger:model Models update challenge request.
func (*ModelsUpdateChallengeRequest) MarshalBinary ¶
func (m *ModelsUpdateChallengeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelsUpdateChallengeRequest) UnmarshalBinary ¶
func (m *ModelsUpdateChallengeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResponseError ¶
type ResponseError struct { // attributes // Required: true Attributes map[string]string `json:"attributes"` // errorcode // Required: true // Format: int32 ErrorCode *int32 `json:"errorCode"` // errormessage // Required: true ErrorMessage *string `json:"errorMessage"` // message // Required: true Message *string `json:"message"` // name // Required: true Name *string `json:"name"` }
ResponseError Response error
swagger:model Response error.
func (*ResponseError) MarshalBinary ¶
func (m *ResponseError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseError) UnmarshalBinary ¶
func (m *ResponseError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- iam_error_response.go
- model_challenge_response.go
- model_claim_user_rewards_req.go
- model_create_challenge_request.go
- model_create_goal_request.go
- model_evaluate_player_progression_request.go
- model_get_goals_response.go
- model_goal_order.go
- model_goal_progression_response.go
- model_goal_response.go
- model_goal_schedule.go
- model_list_challenge_response.go
- model_list_periods_response.go
- model_list_user_rewards_response.go
- model_pagination.go
- model_predicate.go
- model_requirement.go
- model_requirement_progression_response.go
- model_reward.go
- model_schedule.go
- model_update_goal_request.go
- model_user_progression_response.go
- model_user_progression_response_meta.go
- model_user_reward.go
- models_period.go
- models_update_challenge_request.go
- response_error.go