Example usage for android.os Parcel writeLong

List of usage examples for android.os Parcel writeLong

Introduction

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

Prototype

public final void writeLong(long val) 

Source Link

Document

Write a long integer value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);//from www.  j a v a  2s. co  m
    dest.writeString(title);
    dest.writeString(description);
    dest.writeString(descriptionHtml);
    dest.writeString(author);
    dest.writeInt(type);
    dest.writeLong(due);
    dest.writeLong(timestamp);
    dest.writeInt(isEdited ? 1 : 0);
}

From source file:com.datastore_android_sdk.rxvolley.http.URLHttpResponse.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(this.headers);
    dest.writeInt(this.responseCode);
    dest.writeString(this.responseMessage);
    dest.writeString(this.contentEncoding);
    dest.writeString(this.contentType);
    dest.writeLong(this.contentLength);
}

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

@Override
/**//ww w.j ava  2s.c  o m
 * Used for writing a copy of this object to a Parcel, do not manually call.
 */
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(KEY_ID);
    dest.writeLong(loginId);
    dest.writeLong(storyId);
    dest.writeString(title);
    dest.writeString(body);
    dest.writeString(audioLink);
    dest.writeString(videoLink);
    dest.writeString(imageName);
    dest.writeString(imageLink);
    dest.writeString(tags);
    dest.writeLong(creationTime);
    dest.writeLong(storyTime);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
}

From source file:net.issarlk.androbunny.inkbunny.Submission.java

public void writeToParcel(Parcel out, int flag) {
    out.writeLong(Submission.serialVersionUID);
    out.writeInt(this.id);
    out.writeInt(this.hidden);
    this.user.writeToParcel(out, 0);
    out.writeString(this.create_datetime);
    out.writeString(this.create_datetime_usertime);
    out.writeString(this.file_name);
    out.writeInt(this.thumbnails.length);
    for (int i = this.thumbnails.length - 1; i >= 0; i--) {
        if (this.thumbnails[i] != null) {
            out.writeInt(1);//from   w  ww.  java  2 s  .  co m
            this.thumbnails[i].writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }
    }
    out.writeString(this.title);
    out.writeInt(this.deleted);
    out.writeInt(this.s_public);
    out.writeString(this.mimetype);
    this.rating.writeToParcel(out, 0);
    this.submission_type.writeToParcel(out, 0);
    out.writeInt(this.digitalsales);
    out.writeInt(this.printsales);
    out.writeInt(this.guest_block);

    // Full info
    if (this.keywords != null) {
        out.writeInt(1);
        out.writeInt(this.keywords.length);
        for (int i = this.keywords.length - 1; i >= 0; i--) {
            this.keywords[i].writeToParcel(out, 0);
        }
        out.writeInt(this.scraps);
        out.writeInt(this.favorite);
        out.writeInt(this.favorites_count);
        out.writeInt(this.comments_count);
        out.writeInt(this.files.length);
        for (int i = this.files.length - 1; i >= 0; i--) {
            this.files[i].writeToParcel(out, 0);
        }
        out.writeString(this.file_urls[FULL].toString());
        out.writeString(this.file_urls[SCREEN].toString());
        out.writeString(this.file_urls[PREVIEW].toString());
    } else {
        out.writeInt(0);
    }

    //Description      
    if (this.description != null) {
        out.writeInt(1);
        out.writeString(this.description);
    } else {
        out.writeInt(0);
    }

    //Writing
    if (this.writing != null) {
        out.writeInt(1);
        out.writeString(this.writing);
    } else {
        out.writeInt(0);
    }
}

From source file:com.putlocker.upload.concurrency.PutlockerDownloadJob.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(_id);//w w w.ja v a  2s  . c  o  m
    dest.writeString(_fileName);
    dest.writeString(url);
    dest.writeLong(_fileSize);

    dest.writeInt(type.ordinal());
    dest.writeInt(cookies.size());

    for (Cookie cookie : cookies) {
        dest.writeString(cookie.getName());
        dest.writeString(cookie.getValue());
        dest.writeString(cookie.getDomain());
    }

    dest.writeString(_fileLocation == null ? "" : _fileLocation);
    dest.writeString(_originalFileLocation);
}

From source file:ir.aarani.bazaar.billing.SkuDetails.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.productId);
    dest.writeString(this.title);
    dest.writeString(this.description);
    dest.writeByte(isSubscription ? (byte) 1 : (byte) 0);
    dest.writeString(this.currency);
    dest.writeDouble(this.priceValue);
    dest.writeLong(this.priceLong);
    dest.writeString(this.priceText);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.to_id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_owner_id);
    dest.writeInt(this.reply_post_id);
    dest.writeByte(friends_only ? (byte) 1 : (byte) 0);
    dest.writeInt(this.comments_count);
    dest.writeByte(can_post_comment ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes_count);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeByte(can_publish ? (byte) 1 : (byte) 0);
    dest.writeInt(this.reposts_count);
    dest.writeByte(user_reposted ? (byte) 1 : (byte) 0);
    dest.writeString(this.post_type);
    dest.writeParcelable(attachments, flags);
    dest.writeParcelable(this.geo, flags);
    dest.writeInt(this.signer_id);
}

From source file:id.satusatudua.sigap.data.model.ImportantContact.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(contactId);/* www  . j  a  va2 s. com*/
    dest.writeString(name);
    dest.writeString(phoneNumber);
    dest.writeString(userId);
    dest.writeString(address);
    dest.writeLong(createdAt.getTime());
    dest.writeDouble(avgRate);
    dest.writeDouble(totalRate);
    dest.writeLong(totalUserRate);
    dest.writeInt(myRate);
    dest.writeByte((byte) (bookmarked ? 1 : 0));
    dest.writeParcelable(user, flags);
}

From source file:com.guavabot.alarmpreference.Alarm.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte((byte) (mAlarmOn ? 1 : 0));
    dest.writeString(TIME_FMT.print(mTime));
    dest.writeInt(mWeeklyAlarms);/*from ww w . j  a  v  a 2  s . co m*/
    dest.writeLong(mId);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeByte(fork ? (byte) 1 : (byte) 0);
    dest.writeByte(isPrivate ? (byte) 1 : (byte) 0);
    dest.writeLong(created_at != null ? created_at.getTime() : -1);
    dest.writeLong(pushed_at != null ? pushed_at.getTime() : -1);
    dest.writeLong(updated_at != null ? updated_at.getTime() : -1);
    dest.writeInt(this.forks_count);
    dest.writeLong(this.id);
    dest.writeParcelable(this.parent, 0);
    dest.writeParcelable(this.source, 0);
    dest.writeString(this.clone_url);
    dest.writeString(this.forks_url);
    dest.writeString(this.description);
    dest.writeString(this.homepage);
    dest.writeString(this.git_url);
    dest.writeString(this.contents_url);
    dest.writeString(this.language);
    dest.writeString(this.default_branch);
    dest.writeString(this.mirror_url);
    dest.writeString(this.name);
    dest.writeString(this.full_name);
    dest.writeString(this.ssh_url);
    dest.writeString(this.svn_url);
    dest.writeParcelable(this.owner, 0);
    dest.writeInt(this.stargazers_count);
    dest.writeInt(this.subscribers_count);
    dest.writeInt(this.network_count);
    dest.writeInt(this.watchers_count);
    dest.writeInt(this.size);
    dest.writeInt(this.open_issues_count);
    dest.writeByte(has_issues ? (byte) 1 : (byte) 0);
    dest.writeByte(has_downloads ? (byte) 1 : (byte) 0);
    dest.writeByte(has_wiki ? (byte) 1 : (byte) 0);
    dest.writeParcelable(this.permissions, 0);
    dest.writeParcelable(this.license, 0);
    dest.writeTypedList(branches);/*from   w w w  . ja v  a 2 s  .  com*/
    dest.writeString(archive_url);
}