diff options
author | frankfeng <frankfeng@google.com> | 2022-01-05 23:43:23 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-01-05 23:43:23 +0000 |
commit | a3c4e39314251b98b0ee70da2bb63dbc52137ac7 (patch) | |
tree | daa905c2cab4f307d9342908fc85ec54ab73bab3 /third_party/sl4a/src/main/java/com/google/android/mobly/snippet/rpc/JsonSerializable.java | |
parent | a18b21585728971688495dbe384c61b0332c8ce1 (diff) | |
parent | 7902e5747e5ac4131125634009af829766c01dbd (diff) | |
download | mobly-snippet-lib-a3c4e39314251b98b0ee70da2bb63dbc52137ac7.tar.gz |
Merge remote-tracking branch 'aosp/upstream-master' into merge am: 22b92531fc am: 7902e5747e
Original change: https://android-review.googlesource.com/c/platform/external/mobly-snippet-lib/+/1932020
Change-Id: I5620cc6fe90cf4bb769ace565c54a14881b75291
Diffstat (limited to 'third_party/sl4a/src/main/java/com/google/android/mobly/snippet/rpc/JsonSerializable.java')
-rw-r--r-- | third_party/sl4a/src/main/java/com/google/android/mobly/snippet/rpc/JsonSerializable.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/rpc/JsonSerializable.java b/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/rpc/JsonSerializable.java new file mode 100644 index 0000000..5871e01 --- /dev/null +++ b/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/rpc/JsonSerializable.java @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2016 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.android.mobly.snippet.rpc; + +import org.json.JSONException; +import org.json.JSONObject; + +public interface JsonSerializable { + JSONObject toJSON() throws JSONException; +} |