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