Android Open Source - StatusShare-Android Comment Entity

From Project

Back to project page StatusShare-Android.


The source code is released under:

Apache License

If you think the Android project StatusShare-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

 * Copyright (c) 2014 Kinvey Inc.//from   w w  w . ja v a  2s.  c o m
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
package com.kinvey.samples.statusshare.model;

import android.util.Log;
import com.kinvey.samples.statusshare.StatusShare;

import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

 * This class maintains a Comment which can be persisted with Kinvey.
 * @author edwardf
 * @since 2.0
public class CommentEntity extends GenericJson {

    private String id;
    private String text;
    private KinveyMetaData meta;
    private KinveyMetaData.AccessControlList acl;
    private String author;

    public CommentEntity(){
//        meta = new KinveyMetaData();
//        acl = new KinveyMetaData.AccessControlList();

    public CommentEntity(String name){
        meta = new KinveyMetaData();
        acl = new KinveyMetaData.AccessControlList();
        this.text = name;

    public String getId() {
        return id;

    public void setId(String id) { = id;

    public String getText() {
        return text;

    public void setText(String text) {
        this.text = text;

    public KinveyMetaData getMeta() {
        return meta;

    public void setMeta(KinveyMetaData meta) {
        this.meta = meta;

    public KinveyMetaData.AccessControlList getAcl() {
        return acl;

    public void setAcl(KinveyMetaData.AccessControlList acl) {
        this.acl = acl;

    public String getAuthor() {
        return author;

    public void setAuthor(String author) { = author;


Java Source Code List