2
|
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 org.chromium.sdk.internal.protocolparser.JsonField;
|
|
8 |
import org.chromium.sdk.internal.protocolparser.JsonOptionalField;
|
|
9 |
import org.chromium.sdk.internal.protocolparser.JsonOverrideField;
|
|
10 |
import org.chromium.sdk.internal.protocolparser.JsonSubtype;
|
|
11 |
import org.chromium.sdk.internal.protocolparser.JsonSubtypeConditionBoolValue;
|
|
12 |
import org.chromium.sdk.internal.protocolparser.JsonType;
|
|
13 |
|
|
14 |
/**
|
|
15 |
* A type for failed command response message. It should contain "message" field
|
|
16 |
* hinting at the cause of the failure.
|
|
17 |
*/
|
|
18 |
@JsonType
|
|
19 |
public interface FailedCommandResponse extends JsonSubtype<CommandResponse> {
|
|
20 |
@JsonOverrideField
|
|
21 |
@JsonSubtypeConditionBoolValue(false)
|
|
22 |
boolean success();
|
|
23 |
|
|
24 |
String getMessage();
|
|
25 |
|
|
26 |
@JsonField(jsonLiteralName="request_seq")
|
|
27 |
Long getRequestSeq();
|
|
28 |
|
|
29 |
@JsonOptionalField
|
|
30 |
String getCommand();
|
|
31 |
}
|