001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package org.anarres.qemu.qapi.common; 006 007import com.fasterxml.jackson.annotation.JsonProperty; 008 009/** 010 * 011 * @author shevek 012 */ 013public abstract class QApiEvent extends QApiObject { 014 015 // Event looks like: 016 // <<<{"timestamp": {"seconds": 1424208361, "microseconds": 993842}, "event": "POWERDOWN"} 017 public static class Timestamp { 018 019 @JsonProperty 020 public long seconds; 021 @JsonProperty 022 public long microseconds; 023 } 024 025 @JsonProperty 026 public String event; 027 @JsonProperty 028 public Timestamp timestamp; 029}