Skip to content

Commit 090648c

Browse files
committed
Add JavaSE Child class for TransportRecord
1 parent 90c9ef0 commit 090648c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

javaSE/src/main/java/com/smartdevicelink/transport/utl/TransportRecord.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
*/
3232
package com.smartdevicelink.transport.utl;
3333

34+
import android.os.Parcel;
35+
import android.os.Parcelable;
3436
import com.smartdevicelink.transport.enums.TransportType;
3537

3638
public class TransportRecord extends BaseTransportRecord {
@@ -42,4 +44,30 @@ public TransportRecord(TransportType transportType, String address) {
4244
this.type = transportType;
4345
this.address = address;
4446
}
47+
48+
@Deprecated
49+
public TransportRecord(Parcel p) {
50+
super(null, "");
51+
}
52+
53+
@Deprecated
54+
public int describeContents() {
55+
return 0;
56+
};
57+
58+
@Deprecated
59+
public void writeToParcel(Parcel dest, int flags) {}
60+
61+
@Deprecated
62+
public static final Parcelable.Creator<TransportRecord> CREATOR = new Parcelable.Creator<TransportRecord>() {
63+
public TransportRecord createFromParcel(Parcel in) {
64+
return new TransportRecord(in);
65+
}
66+
67+
@Override
68+
public TransportRecord[] newArray(int size) {
69+
return new TransportRecord[size];
70+
}
71+
72+
};
4573
}

0 commit comments

Comments
 (0)