Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.nfc.NdefMessage;
      4 import android.nfc.NdefRecord;
      5 import com.xtremelabs.robolectric.internal.Implementation;
      6 import com.xtremelabs.robolectric.internal.Implements;
      7 import com.xtremelabs.robolectric.internal.RealObject;
      8 
      9 @Implements(NdefMessage.class)
     10 public class ShadowNdefMessage {
     11     @RealObject
     12     private NdefMessage realNdefMessage;
     13 
     14     private NdefRecord[] ndefRecords;
     15 
     16     public void __constructor__(NdefRecord[] ndefRecords) {
     17         this.ndefRecords = ndefRecords;
     18     }
     19 
     20     @Implementation
     21     public NdefRecord[] getRecords() {
     22         return ndefRecords;
     23     }
     24 }
     25