本文整理汇总了Java中com.google.android.gms.plus.model.moments.ItemScope类的典型用法代码示例。如果您正苦于以下问题:Java ItemScope类的具体用法?Java ItemScope怎么用?Java ItemScope使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemScope类属于com.google.android.gms.plus.model.moments包,在下文中一共展示了ItemScope类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getReviewActivityResult
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
/**
* Generates the "result" JSON object for ReviewActivity moment.
*/
private static ItemScope getReviewActivityResult() {
ItemScope rating = new ItemScope.Builder()
.setType("http://schema.org/Rating")
.setRatingValue("100")
.setBestRating("100")
.setWorstRating("0")
.build();
return new ItemScope.Builder()
.setType("http://schema.org/Review")
.setName("A Humble Review of Widget")
.setUrl("https://developers.google.com/+/plugins/snippet/examples/review")
.setText("It is amazingly effective")
.setReviewRating(rating)
.build();
}
开发者ID:thoinv,项目名称:kaorisan,代码行数:20,代码来源:MomentUtil.java
示例2: onItemClick
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
if (mGoogleApiClient.isConnected()) {
TextView textView = (TextView) view;
String momentType = (String) textView.getText();
String targetUrl = MomentUtil.MOMENT_TYPES.get(momentType);
ItemScope target = new ItemScope.Builder().setUrl(targetUrl).build();
Moment.Builder momentBuilder = new Moment.Builder();
momentBuilder.setType("http://schemas.google.com/" + momentType);
momentBuilder.setTarget(target);
ItemScope result = MomentUtil.getResultFor(momentType);
if (result != null) {
momentBuilder.setResult(result);
}
Plus.MomentsApi.write(mGoogleApiClient, momentBuilder.build());
}
}
开发者ID:TerribleDev,项目名称:XamarinAdmobTutorial,代码行数:22,代码来源:MomentActivity.java
示例3: onItemClick
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
if (mGoogleApiClient.isConnected()) {
TextView textView = (TextView) view;
String momentType = (String) textView.getText();
String targetUrl = MomentUtil.MOMENT_TYPES.get(momentType);
ItemScope target = new ItemScope.Builder().setUrl(targetUrl).build();
Moment.Builder momentBuilder = new Moment.Builder();
momentBuilder.setType("http://schemas.google.com/" + momentType);
momentBuilder.setTarget(target);
ItemScope result = MomentUtil.getResultFor(momentType);
if (result != null) {
momentBuilder.setResult(result);
}
Plus.MomentsApi.write(mGoogleApiClient, momentBuilder.build()).setResultCallback(this);
}
}
开发者ID:benbek,项目名称:HereAStory-Android,代码行数:22,代码来源:MomentActivity.java
示例4: onItemClick
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
TextView textView = (TextView) view;
String momentType = (String) textView.getText();
String targetUrl = MomentUtil.MOMENT_TYPES.get(momentType);
ItemScope target = new ItemScope.Builder().setUrl(targetUrl).build();
Moment.Builder momentBuilder = new Moment.Builder();
momentBuilder.setType("http://schemas.google.com/" + momentType);
momentBuilder.setTarget(target);
ItemScope result = MomentUtil.getResultFor(momentType);
if (result != null) {
momentBuilder.setResult(result);
}
mPlusClient.writeMoment(momentBuilder.build());
}
开发者ID:laurion,项目名称:wabbit-client,代码行数:20,代码来源:MomentActivity.java
示例5: getResultFor
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
/**
* Generates the "result" JSON object for select moments.
*
* @param momentType The type of the moment.
*/
public static ItemScope getResultFor(String momentType) {
if (momentType.equals("CommentActivity")) {
return getCommentActivityResult();
}
if (momentType.equals("ReserveActivity")) {
return getReserveActivityResult();
}
if (momentType.equals("ReviewActivity")) {
return getReviewActivityResult();
}
return null;
}
开发者ID:thoinv,项目名称:kaorisan,代码行数:18,代码来源:MomentUtil.java
示例6: getCommentActivityResult
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
/**
* Generates the "result" JSON object for CommentActivity moment.
*/
private static ItemScope getCommentActivityResult() {
return new ItemScope.Builder()
.setType("http://schema.org/Comment")
.setUrl("https://developers.google.com/+/plugins/snippet/examples/blog-entry#comment-1")
.setName("This is amazing!")
.setText("I can't wait to use it on my site!")
.build();
}
开发者ID:thoinv,项目名称:kaorisan,代码行数:12,代码来源:MomentUtil.java
示例7: getReserveActivityResult
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
/**
* Generates the "result" JSON object for ReserveActivity moment.
*/
private static ItemScope getReserveActivityResult() {
return new ItemScope.Builder()
.setType("http://schemas.google.com/Reservation")
.setStartDate("2012-06-28T19:00:00-08:00")
.setAttendeeCount(3)
.build();
}
开发者ID:thoinv,项目名称:kaorisan,代码行数:11,代码来源:MomentUtil.java
示例8: getResult
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getResult()
{
return this.Fm;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:id.java
示例9: getTarget
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getTarget()
{
return this.Fn;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:id.java
示例10: getAbout
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getAbout()
{
return this.Er;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例11: getAddress
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getAddress()
{
return this.Et;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例12: getAssociated_media
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final List<ItemScope> getAssociated_media()
{
return (ArrayList)this.Ex;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例13: getAttendees
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final List<ItemScope> getAttendees()
{
return (ArrayList)this.Ez;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例14: getAudio
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getAudio()
{
return this.EA;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例15: getAuthor
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final List<ItemScope> getAuthor()
{
return (ArrayList)this.EB;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例16: getByArtist
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getByArtist()
{
return this.EE;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例17: getContributor
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final List<ItemScope> getContributor()
{
return (ArrayList)this.EI;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例18: getGeo
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getGeo()
{
return this.ER;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例19: getInAlbum
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getInAlbum()
{
return this.EV;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
示例20: getLocation
import com.google.android.gms.plus.model.moments.ItemScope; //导入依赖的package包/类
public final ItemScope getLocation()
{
return this.EW;
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ib.java
注:本文中的com.google.android.gms.plus.model.moments.ItemScope类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论