Show / Hide Table of Contents

Class AchievementsResource

The "achievements" collection of methods.

Inheritance
object
AchievementsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class AchievementsResource

Constructors

AchievementsResource(IClientService)

Constructs a new resource.

Declaration
public AchievementsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Increment(string, int)

Increments the steps of the achievement with the given ID for the currently authenticated player.

Declaration
public virtual AchievementsResource.IncrementRequest Increment(string achievementId, int stepsToIncrement)
Parameters
Type Name Description
string achievementId

The ID of the achievement used by this method.

int stepsToIncrement

Required. The number of steps to increment.

Returns
Type Description
AchievementsResource.IncrementRequest

List(string)

Lists the progress for all your application's achievements for the currently authenticated player.

Declaration
public virtual AchievementsResource.ListRequest List(string playerId)
Parameters
Type Name Description
string playerId

A player ID. A value of me may be used in place of the authenticated player's ID.

Returns
Type Description
AchievementsResource.ListRequest

Reveal(string)

Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.

Declaration
public virtual AchievementsResource.RevealRequest Reveal(string achievementId)
Parameters
Type Name Description
string achievementId

The ID of the achievement used by this method.

Returns
Type Description
AchievementsResource.RevealRequest

SetStepsAtLeast(string, int)

Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.

Declaration
public virtual AchievementsResource.SetStepsAtLeastRequest SetStepsAtLeast(string achievementId, int steps)
Parameters
Type Name Description
string achievementId

The ID of the achievement used by this method.

int steps

Required. The minimum value to set the steps to.

Returns
Type Description
AchievementsResource.SetStepsAtLeastRequest

Unlock(string)

Unlocks this achievement for the currently authenticated player.

Declaration
public virtual AchievementsResource.UnlockRequest Unlock(string achievementId)
Parameters
Type Name Description
string achievementId

The ID of the achievement used by this method.

Returns
Type Description
AchievementsResource.UnlockRequest

UpdateMultiple(AchievementUpdateMultipleRequest)

Updates multiple achievements for the currently authenticated player.

Declaration
public virtual AchievementsResource.UpdateMultipleRequest UpdateMultiple(AchievementUpdateMultipleRequest body)
Parameters
Type Name Description
AchievementUpdateMultipleRequest body

The body of the request.

Returns
Type Description
AchievementsResource.UpdateMultipleRequest
In This Article
Back to top Generated by DocFX