org.chromium.sdk/src/org/chromium/sdk/internal/protocol/SuccessCommandResponse.java
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 package org.chromium.sdk.internal.protocol; |
|
6 |
|
7 import java.util.List; |
|
8 |
|
9 import org.chromium.sdk.internal.protocol.data.SomeHandle; |
|
10 import org.chromium.sdk.internal.protocolparser.JsonOptionalField; |
|
11 import org.chromium.sdk.internal.protocolparser.JsonOverrideField; |
|
12 import org.chromium.sdk.internal.protocolparser.JsonSubtype; |
|
13 import org.chromium.sdk.internal.protocolparser.JsonSubtypeConditionBoolValue; |
|
14 import org.chromium.sdk.internal.protocolparser.JsonType; |
|
15 |
|
16 /** |
|
17 * A type for success command response message. It holds all the data in |
|
18 * "body" field and usually provides "reference" part with data for all referenced objects. |
|
19 */ |
|
20 @JsonType |
|
21 public interface SuccessCommandResponse extends JsonSubtype<CommandResponse> { |
|
22 @JsonOverrideField |
|
23 @JsonSubtypeConditionBoolValue(true) |
|
24 boolean success(); |
|
25 |
|
26 @JsonOptionalField |
|
27 CommandResponseBody getBody(); |
|
28 |
|
29 @JsonOptionalField |
|
30 List<SomeHandle> getRefs(); |
|
31 |
|
32 /** |
|
33 * @return whether VM continue running after handling the command; however next commands |
|
34 * may change it |
|
35 */ |
|
36 boolean running(); |
|
37 } |