RecentBsGetResponse.java 2.31 KB
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

package com.glsx.ice_track.hDaoGpsSvc;

public class RecentBsGetResponse implements Cloneable, java.io.Serializable
{
    public int oprResult;

    public BsRecord[] records;

    public RecentBsGetResponse()
    {
    }

    public RecentBsGetResponse(int oprResult, BsRecord[] records)
    {
        this.oprResult = oprResult;
        this.records = records;
    }

    public boolean
    equals(Object rhs)
    {
        if(this == rhs)
        {
            return true;
        }
        RecentBsGetResponse _r = null;
        if(rhs instanceof RecentBsGetResponse)
        {
            _r = (RecentBsGetResponse)rhs;
        }

        if(_r != null)
        {
            if(oprResult != _r.oprResult)
            {
                return false;
            }
            if(!java.util.Arrays.equals(records, _r.records))
            {
                return false;
            }

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::RecentBsGetResponse");
        __h = IceInternal.HashUtil.hashAdd(__h, oprResult);
        __h = IceInternal.HashUtil.hashAdd(__h, records);
        return __h;
    }

    public Object
    clone()
    {
        Object o = null;
        try
        {
            o = super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            assert false; // impossible
        }
        return o;
    }

    public void
    __write(IceInternal.BasicStream __os)
    {
        __os.writeInt(oprResult);
        BsRecordsHelper.write(__os, records);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        oprResult = __is.readInt();
        records = BsRecordsHelper.read(__is);
    }

    public static final long serialVersionUID = -8891443859913109256L;
}