public final class SetGeoLocation extends UpdateActionImpl<Channel>
See also ChannelUpdateCommand.
withUpdatableChannelOfRole(client(), asSet(PRIMARY), channel -> { final Point point = Point.of(52.0, 10.0); final Channel updatedChannel = client().executeBlocking(ChannelUpdateCommand.of(channel, SetGeoLocation.of(point))); assertThat(updatedChannel.getGeoLocation()).isEqualTo(point); return updatedChannel; });
See the test code.
Modifier and Type | Method and Description |
---|---|
GeoJSON |
getGeoLocation() |
static SetGeoLocation |
of(GeoJSON geoLocation) |
static SetGeoLocation |
ofUnset() |
getAction
public static SetGeoLocation of(@Nullable GeoJSON geoLocation)
public static SetGeoLocation ofUnset()