@@ -47,8 +47,6 @@ public class BranchUniversalObject implements Parcelable {
4747 private String imageUrl_ ;
4848 /* Meta data provided for the content. {@link ContentMetadata} object holds the metadata for this content */
4949 private ContentMetadata metadata_ ;
50- /* Content index mode */
51- private CONTENT_INDEX_MODE indexMode_ ;
5250 /* Any keyword associated with the content. Used for indexing */
5351 private final ArrayList <String > keywords_ ;
5452 /* Expiry date for the content and any associated links. Represented as epoch milli second */
@@ -80,7 +78,6 @@ public BranchUniversalObject() {
8078 canonicalUrl_ = "" ;
8179 title_ = "" ;
8280 description_ = "" ;
83- indexMode_ = CONTENT_INDEX_MODE .PUBLIC ; // Default content indexing mode is public
8481 localIndexMode_ = CONTENT_INDEX_MODE .PUBLIC ; // Default local indexing mode is public
8582 expirationInMilliSec_ = 0L ;
8683 creationTimeStamp_ = System .currentTimeMillis ();
@@ -499,12 +496,6 @@ public static BranchUniversalObject createInstance(JSONObject jsonObject) {
499496 }
500497 }
501498 Object indexableVal = jsonReader .readOut (Defines .Jsonkey .PublicallyIndexable .getKey ());
502- if (indexableVal instanceof Boolean ) {
503- branchUniversalObject .indexMode_ = (Boolean ) indexableVal ? CONTENT_INDEX_MODE .PUBLIC : CONTENT_INDEX_MODE .PRIVATE ;
504- } else if (indexableVal instanceof Integer ) {
505- // iOS compatibility issue. iOS send 0/1 instead of true or false
506- branchUniversalObject .indexMode_ = (Integer ) indexableVal == 1 ? CONTENT_INDEX_MODE .PUBLIC : CONTENT_INDEX_MODE .PRIVATE ;
507- }
508499 branchUniversalObject .localIndexMode_ = jsonReader .readOutBoolean (Defines .Jsonkey .LocallyIndexable .getKey ()) ? CONTENT_INDEX_MODE .PUBLIC : CONTENT_INDEX_MODE .PRIVATE ;
509500 branchUniversalObject .creationTimeStamp_ = jsonReader .readOutLong (Defines .Jsonkey .CreationTimestamp .getKey ());
510501
@@ -601,7 +592,6 @@ public void writeToParcel(Parcel dest, int flags) {
601592 dest .writeString (description_ );
602593 dest .writeString (imageUrl_ );
603594 dest .writeLong (expirationInMilliSec_ );
604- dest .writeInt (indexMode_ .ordinal ());
605595 dest .writeSerializable (keywords_ );
606596 dest .writeParcelable (metadata_ , flags );
607597 dest .writeInt (localIndexMode_ .ordinal ());
@@ -616,7 +606,6 @@ private BranchUniversalObject(Parcel in) {
616606 description_ = in .readString ();
617607 imageUrl_ = in .readString ();
618608 expirationInMilliSec_ = in .readLong ();
619- indexMode_ = CONTENT_INDEX_MODE .values ()[in .readInt ()];
620609 @ SuppressWarnings ("unchecked" )
621610 ArrayList <String > keywordsTemp = (ArrayList <String >) in .readSerializable ();
622611 if (keywordsTemp != null ) {
0 commit comments