Skip to content

Commit

Permalink
Merge pull request #170 from salemove/release/v1.7.1
Browse files Browse the repository at this point in the history
Glia Widgets SDK 1.7.1
  • Loading branch information
dukhovnyi authored Jan 7, 2022
2 parents 7ec40be + 00712b2 commit ba9a667
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class GliaVisitorInfo implements VisitorInfo {
public boolean banned;
public String href;
public String id;
public String externalId;

public GliaVisitorInfo(VisitorInfo visitorInfo) {
this.name = visitorInfo.getName();
Expand All @@ -24,6 +25,7 @@ public GliaVisitorInfo(VisitorInfo visitorInfo) {
this.banned = visitorInfo.getBanned();
this.href = visitorInfo.getHref();
this.id = visitorInfo.getId();
this.externalId = visitorInfo.getExternalId();
}

@Override
Expand Down Expand Up @@ -70,4 +72,9 @@ public String getHref() {
public String getId() {
return id;
}

@Override
public String getExternalId() {
return externalId;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.glia.widgets.core.visitor;

import androidx.annotation.Nullable;

import com.glia.androidsdk.visitor.VisitorInfoUpdateRequest;
import com.google.gson.internal.LinkedTreeMap;

Expand All @@ -12,6 +14,7 @@ public class VisitorInfoUpdate implements VisitorInfoUpdateRequest {
public LinkedTreeMap<String, String> customAttributes;
public VisitorInfoUpdateRequest.NoteUpdateMethod noteUpdateMethod = VisitorInfoUpdateRequest.NoteUpdateMethod.APPEND;
public VisitorInfoUpdateRequest.CustomAttributesUpdateMethod customAttrsUpdateMethod = VisitorInfoUpdateRequest.CustomAttributesUpdateMethod.MERGE;
public String externalId;

public void setName(String name) {
this.name = name;
Expand Down Expand Up @@ -41,6 +44,8 @@ public void setCustomAttrsUpdateMethod(CustomAttributesUpdateMethod customAttrsU
this.customAttrsUpdateMethod = customAttrsUpdateMethod;
}

public void setExternalId(String externalId) { this.externalId = externalId; }

@Override
public String getName() {
return name;
Expand Down Expand Up @@ -75,4 +80,9 @@ public CustomAttributesUpdateMethod getCustomAttrsUpdateMethod() {
public LinkedTreeMap<String, String> getCustomAttributes() {
return customAttributes;
}

@Override
public String getExternalId() {
return externalId;
}
}

0 comments on commit ba9a667

Please sign in to comment.