@@ -47,6 +47,7 @@ public class Friend implements Serializable{
47
47
long to ;
48
48
public long dependantDate ;
49
49
public long fromCreationDate ;
50
+ public long toCreationDate ;
50
51
long createdTime ; //approved Time
51
52
long requestTime ;
52
53
long declinedTime ;
@@ -65,7 +66,7 @@ public class Friend implements Serializable{
65
66
boolean isLargePoster ; // True if friend is a large poster.
66
67
67
68
68
- public Friend (long from , long to , long _requestedTime , long _declinedTime , long _createdTime , byte passidx , byte initiator , boolean isLargePoster ){
69
+ /* public Friend(long from, long to, long _requestedTime, long _declinedTime, long _createdTime, byte passidx, byte initiator, boolean isLargePoster){
69
70
this.from = from;
70
71
this.to = to;
71
72
this.requestTime = _requestedTime;
@@ -75,13 +76,15 @@ public Friend(long from, long to, long _requestedTime, long _declinedTime, long
75
76
this.initiator = initiator;
76
77
this.isLargePoster = isLargePoster;
77
78
}
79
+ */
78
80
public Friend (){}
79
81
80
82
public void readFields (DataInput arg0 ) throws IOException {
81
83
from = arg0 .readLong ();
82
84
to = arg0 .readLong ();
83
85
dependantDate = arg0 .readLong ();
84
86
fromCreationDate = arg0 .readLong ();
87
+ toCreationDate = arg0 .readLong ();
85
88
createdTime = arg0 .readLong ();
86
89
requestTime = arg0 .readLong ();
87
90
declinedTime = arg0 .readLong ();
@@ -102,6 +105,7 @@ public void write(DataOutput arg0) throws IOException {
102
105
arg0 .writeLong (to );
103
106
arg0 .writeLong (dependantDate );
104
107
arg0 .writeLong (fromCreationDate );
108
+ arg0 .writeLong (toCreationDate );
105
109
arg0 .writeLong (createdTime );
106
110
arg0 .writeLong (requestTime );
107
111
arg0 .writeLong (declinedTime );
@@ -123,6 +127,7 @@ public Friend(ReducedUserProfile from, ReducedUserProfile to, long _requestedTim
123
127
this .to = to .getAccountId ();
124
128
this .dependantDate = Math .max (from .getCreationDate (), to .getCreationDate ());
125
129
this .fromCreationDate = from .getCreationDate ();
130
+ this .toCreationDate = to .getCreationDate ();
126
131
this .requestTime = _requestedTime ;
127
132
this .declinedTime = _declinedTime ;
128
133
this .createdTime = _createdTime ;
0 commit comments