Example usage for android.os Parcel readLong

List of usage examples for android.os Parcel readLong

Introduction

In this page you can find the example usage for android.os Parcel readLong.

Prototype

public final long readLong() 

Source Link

Document

Read a long integer value from the parcel at the current dataPosition().

Usage

From source file:ru.rzn.myasoedov.vktest.dto.VKChat.java

public VKChat(Parcel in) {
    super(in);/*from  w  w w  .j  a  v a2 s.com*/
    this.preview = in.readString();
    this.photoUrl = in.readString();
    this.customPhotoUrl = in.readString();
    this.date = in.readLong();
}

From source file:com.nextgis.firereporter.ScanexSubscriptionItem.java

private ScanexSubscriptionItem(Parcel in) {
    nID = in.readLong();
    sTitle = in.readString();/*  w  w w . j av a 2  s . c  o  m*/
    sLayerName = in.readString();
    sWKT = in.readString();
    bSMSEnable = in.readInt() == 1 ? true : false;
    bHasNews = in.readInt() == 1 ? true : false;

    mmoItems = new HashMap<Long, ScanexNotificationItem>();
    int nSize = in.readInt();
    for (int i = 0; i < nSize; i++) {
        ScanexNotificationItem it = (ScanexNotificationItem) in
                .readValue(ScanexNotificationItem.class.getClassLoader());
        mmoItems.put(it.GetId(), it);
    }
}

From source file:com.artemchep.horario.models.Notification.java

public Notification(Parcel source) {
    key = source.readString();//from w w  w .j ava  2 s . c  o m
    title = source.readString();
    summary = source.readString();
    author = source.readString();
    priority = source.readInt();
    timestamp = source.readLong();
}

From source file:com.vk.sdk.api.model.VKApiDocument.java

/**
 * Creates a Doc instance from Parcel./*w ww.j  a v  a  2 s  .  c  o  m*/
 */
public VKApiDocument(Parcel in) {
    this.id = in.readInt();
    this.owner_id = in.readInt();
    this.title = in.readString();
    this.size = in.readLong();
    this.ext = in.readString();
    this.url = in.readString();
    this.photo_100 = in.readString();
    this.photo_130 = in.readString();
    this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader());
    this.access_key = in.readString();
    this.mIsImage = in.readByte() != 0;
    this.mIsGif = in.readByte() != 0;
}

From source file:com.vk.sdk.api.model.VKApiPlace.java

/**
 * Creates a Place instance from Parcel.
 *//*w  w  w.  j  a  v a2  s.com*/
public VKApiPlace(Parcel in) {
    this.id = in.readInt();
    this.title = in.readString();
    this.latitude = in.readDouble();
    this.longitude = in.readDouble();
    this.created = in.readLong();
    this.checkins = in.readInt();
    this.updated = in.readLong();
    this.country_id = in.readInt();
    this.city_id = in.readInt();
    this.address = in.readString();
}

From source file:com.nextgis.maplib.datasource.ngw.Resource.java

protected Resource(Parcel in) {
    mName = in.readString();/*w  w w  . j  a  v  a  2 s .c  o m*/
    mHasChildren = in.readByte() == 1;
    mDescription = in.readString();
    mKeyName = in.readString();
    mOwnerId = in.readLong();
    boolean hasPermissions = in.readByte() == 1;
    if (hasPermissions) {
        try {
            mPermissions = new JSONObject(in.readString());
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
    mType = in.readInt();
    mId = in.readInt();
}

From source file:com.frodo.github.bean.dto.response.Repo.java

protected Repo(Parcel in) {
    super(in);//from www .  j  av a2s .co  m
    this.fork = in.readByte() != 0;
    this.isPrivate = in.readByte() != 0;
    long tmpCreated_at = in.readLong();
    this.created_at = tmpCreated_at == -1 ? null : new Date(tmpCreated_at);
    long tmpPushed_at = in.readLong();
    this.pushed_at = tmpPushed_at == -1 ? null : new Date(tmpPushed_at);
    long tmpUpdated_at = in.readLong();
    this.updated_at = tmpUpdated_at == -1 ? null : new Date(tmpUpdated_at);
    this.forks_count = in.readInt();
    this.id = in.readLong();
    this.parent = in.readParcelable(Repo.class.getClassLoader());
    this.source = in.readParcelable(Repo.class.getClassLoader());
    this.clone_url = in.readString();
    this.description = in.readString();
    this.homepage = in.readString();
    this.forks_url = in.readString();
    this.git_url = in.readString();
    this.contents_url = in.readString();
    this.language = in.readString();
    this.default_branch = in.readString();
    this.mirror_url = in.readString();
    this.name = in.readString();
    this.full_name = in.readString();
    this.ssh_url = in.readString();
    this.svn_url = in.readString();
    this.owner = in.readParcelable(User.class.getClassLoader());
    this.stargazers_count = in.readInt();
    this.subscribers_count = in.readInt();
    this.network_count = in.readInt();
    this.watchers_count = in.readInt();
    this.size = in.readInt();
    this.open_issues_count = in.readInt();
    this.has_issues = in.readByte() != 0;
    this.has_downloads = in.readByte() != 0;
    this.has_wiki = in.readByte() != 0;
    this.permissions = in.readParcelable(Permissions.class.getClassLoader());
    this.license = in.readParcelable(License.class.getClassLoader());
    this.branches = in.createTypedArrayList(Branch.CREATOR);
    this.archive_url = in.readString();
}

From source file:edu.vuum.mocca.storage.StoryData.java

/**
 * Used for writing a copy of this object to a Parcel, do not manually call.
 *//*from   w  w  w.  j  a v  a2 s. c  o  m*/
private StoryData(Parcel in) {
    KEY_ID = in.readLong();
    loginId = in.readLong();
    storyId = in.readLong();
    title = in.readString();
    body = in.readString();
    audioLink = in.readString();
    videoLink = in.readString();
    imageName = in.readString();
    imageLink = in.readString();
    tags = in.readString();
    creationTime = in.readLong();
    storyTime = in.readLong();
    latitude = in.readDouble();
    longitude = in.readDouble();
}

From source file:com.tigerpenguin.places.model.Review.java

@SuppressWarnings("unchecked")
public Review(Parcel in) {
    aspectRatings = in.readArrayList(AspectRating.class.getClassLoader());
    authorName = in.readString();/*from w  ww  . j  a v a2  s .  c o m*/
    authorUrl = in.readString();
    language = (Language) in.readSerializable();
    rating = in.readInt();
    text = in.readString();
    submitTime = in.readLong();
}

From source file:com.artemchep.horario.models.SubjectStudent.java

public SubjectStudent(Parcel source) {
    key = source.readString();// w  ww .j av a2s . c  o m
    title = source.readString();
    description = source.readString();
    descriptionHtml = source.readString();
    author = source.readString();
    type = source.readInt();
    due = source.readLong();
    timestamp = source.readLong();
    isEdited = source.readInt() != 0;
}