added onSuccess and onFailure methods in GetSample

Implement onSuccess and onFailure methods