Esempio n. 1
0
        /**
         * Gets the {@link EmberLibraryStatus} of the requested {@link EmberLibraryId}
         *
         * @return the {@link EmberLibraryStatus} of the local node
         */
        public EmberLibraryStatus GetLibraryStatus(EmberLibraryId libraryId)
        {
            EzspGetLibraryStatusRequest request = new EzspGetLibraryStatusRequest();

            request.SetLibraryId(libraryId);
            IEzspTransaction             transaction = _protocolHandler.SendEzspTransaction(new EzspSingleResponseTransaction(request, typeof(EzspGetLibraryStatusResponse)));
            EzspGetLibraryStatusResponse response    = (EzspGetLibraryStatusResponse)transaction.GetResponse();

            return(response.GetStatus());
        }
Esempio n. 2
0
 public void SerializeEmberLibraryId(EmberLibraryId libraryId)
 {
     _buffer[_length++] = (int)libraryId;
 }
Esempio n. 3
0
 /// <summary>
 /// The libraryId to set as <see cref="EmberLibraryId"/> </summary>
 public void SetLibraryId(EmberLibraryId libraryId)
 {
     _libraryId = libraryId;
 }